[Python-Dev] Relative Package Imports
James C. Ahlstrom
Tue, 14 Sep 1999 09:46:23 -0400
Jim Fulton wrote:
> "M.-A. Lemburg" wrote:
> > In the end, having written a self-contained package is a "feature"
> > of that package. Other authors can then say: ok, I can
> > plugin your package if it's self-contained.
> Well said. It really should be possible to provide
> *self-contained* package hierarchies.
> There are at
> least two people in this discussion that are trying hard to
> make use of packages and have observed a significant problem.
OK, just to make sure I understand this. You are saying that
a ".." operation is needed in imports so that a package author
with a package which looks like this:
can write "import __.sub2.mod2" instead of "import mypackage.sub2.mod2"
within the file mod1.py. Right?