The xy form implies that packages and modules are involved and should be the preferred form when this is.
If t is the character defined in y , then:
>>> from xy import t as z >>>
... but
>>> import xyt as z Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named t >>>
Point notation is reserved for modules and should be used when modules are involved.
source share