[Python-Dev] Relative import
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.
More information about the Python-Dev