[Python-Dev] PEP 328: path (original) (raw)
Samuele Pedroni pedronis at bluewin.ch
Sun Apr 4 12:35:28 EDT 2004
- Previous message: [Python-Dev] PEP 328: __path__
- Next message: [Python-Dev] PEP 328: __path__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 12:21 04.04.2004 -0400, Aahz wrote:
I just realized that the new relative import semantics are likely to interact oddly with uses of
_path_. I therefore suggest that the following text be added to PEP 328, although I'm perfectly happy to adopt some other course:Between the addition of
asin Python 2.0 and the new syntax & semantics forimport, there is no longer a need for_path_, and it is now officially deprecated. In Python 2.4 and 2.5, changing_path_raisesPendingDeprecationWarning. In Python 2.6,_path_becomes a read-only attribute. In the presence ofabsoluteimportor with a relative import,_path_is ignored. --
that's an issue because people use path to spread a package over many directories and not just in ther relative
Btw I thought (I admit I have not read the PEP) that relative imports are an operation over package names
import .c .# in a.b -> a.c
not about concrete directories.
regards.
- Previous message: [Python-Dev] PEP 328: __path__
- Next message: [Python-Dev] PEP 328: __path__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]