[Python-Dev] Absolute imports in Python 2.x? (original) (raw)
What are the current plans for PEP 328 (the absolute imports PEP) in Python 2.x?
The PEP says:
"""In Python 2.6, any import statement that results in an intra-package import will raise DeprecationWarning (this also applies to from <> import that fails to use the relative import syntax). In Python 2.7, import will always be an absolute import (and the future directive will no longer be needed)."""
As far as I can tell, there's no DeprecationWarning in 2.6.
I'm wondering whether this decision was revised at some point (I wasn't able to find anything by searching the archives), or whether the DeprecationWarning just got forgotten about.
If the latter, should the DeprecationWarning be introduced in 2.7?
Mark
Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com