[Python-Dev] Some comments on PEP 328 (absolute/relative imports) (original) (raw)

Barry Warsaw barry at python.org
Tue Apr 6 11:38:24 EDT 2004


On Tue, 2004-04-06 at 10:16, Aahz wrote:

Thanks! Here's my rewrite; comments, anyone?

Some minor rephrasing suggestion...

Rationale for Absolute Imports ==============================

In Python 2.3 and earlier, if you're reading a module located inside a package, it is not clear whether :: import foo refers to a top-level module or to another module inside the package. As Python's library expands, more and more old modules suddenly shadow builtin modules by accident.

As Python's library expands, more and more existing package internal modules suddenly shadow standard library modules by accident.

-Barry



More information about the Python-Dev mailing list