[Python-Dev] Relative Package Imports
Jim Fulton
jim@digicool.com
Mon, 13 Sep 1999 08:44:56 -0400
Guido van Rossum wrote:
>
> > I've spent the last two hours trying to get relative package
> > imports to work because I need them for my extension packages
> > which will soon all move under a new top-level package name
> > to overcome the conflicts with PIL and Zope.
>
> I'd much rather use absolute package names for anything that's not in
> the same directory as the current module.
I'll second Marc-Andre here.
A significant headache occurs when you have a package
that has sub-packages. Sub-packages need to be able to
reference other sub-packages within the same package without
knowing where the containing package is installed.
Jim
--
Jim Fulton mailto:jim@digicool.com Python Powered!
Technical Director (888) 344-4332 http://www.python.org
Digital Creations http://www.digicool.com http://www.zope.org
Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission. Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.