[Python-Dev] Re: PEP 328 -- relative and multi-line import (original) (raw)

Aahz aahz at pythoncraft.com
Tue Apr 6 22:28:02 EDT 2004


On Tue, Apr 06, 2004, Greg Ewing wrote:

Would it be unreasonable to define "." as meaning the current package, rather than the current module -- i.e. the package itself if the importer is a package, and the containing package if it's a plain module?

Not unreasonable, but I think it complicates the explanation. I'm basically -0 on having "." in init.py refer to the current package instead of the parent; we'll see what Guido says.

Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/

Why is this newsgroup different from all other newsgroups?



More information about the Python-Dev mailing list