[Python-Dev] Relative import (original) (raw)

Barry Warsaw barry at python.org
Thu Dec 18 01:52:32 EST 2003


On Thu, 2003-12-18 at 13:04, Greg Ewing wrote:

Maybe in Python 3.0 the current directory should appear as a package with some standard name. Then applications could use relative imports to import their own modules, and absolute ones to import standard modules, without fear of conflict.

In a previous thread, we already came up with me as a magic name referring to the current module. Let's use my as the prefix for importing a relative module.

too-tired-to-wink-ly y'rs, -Barry



More information about the Python-Dev mailing list