[Python-Dev] Re: PEP 328 -- relative and multi-line import (original) (raw)
Guido van Rossum guido at python.org
Sat Apr 3 21:58:35 EST 2004
- Previous message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Next message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Great! Then PEP 328 is almost set except for Bernhard's wish for more clarification of the rationale for making the default import absolute. I've gone ahead and updated the PEP, and I think we should move forward on implementation even without the clarification, but I've stuck a note in my calendar to bug people regularly until the rationale is finished.
I've added the following: Timeline ======== In Python 2.4, you must enable the new absolute import behavior with :: from future import absoluteimport You may use relative imports freely. In Python 2.5, any
import
statement that results in an intra-package import will generate aPendingDeprecation
warning (this also applies tofrom <> import
that fails to use the relative import syntax). In Python 2.6,import
will always be an absolute import.
Perfect!
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Next message: [Python-Dev] Re: PEP 328 -- relative and multi-line import
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]