PROPOSAL: Packages in Python lib

Stefan Franke spamfranke at bigfoot.de
Mon May 3 07:28:10 EDT 1999


On Sat, 1 May 1999 19:57:43 GMT, Paul Prescod <paul at prescod.net> wrote:

>I would like to suggest a package organization for the standard modules.
>The package directories should all be in sys.path so that older modules
>would continue to work. 

I think it's about time to "packagize" the library every time I try to find
something inside the lib/ dir.
However, could this approach possibly result in increased startup times?
sys.path gets pretty long with your suggested approach.
On an OS with symlinks there should be no problem to maintain both structures,
but I  see no easy way without them. I guess the hierarchical structure could
could be faked by customizing the import right now, but I'm not clever enough to
figure it out.
Generally, it would be nice to have a simple way in Python to allow different
views on the same module set (I could imagine locally interpreted .pth files as
placeholders inside a package), but maybe I just don't know it is possible
already.

Stefan





More information about the Python-list mailing list