Having a __stdlib__ namespace?
Lulu of the Lotus-Eaters
mertz at gnosis.cx
Fri Jan 10 03:49:16 EST 2003
Daniel Yoo <dyoo at hkn.eecs.berkeley.edu> wrote previously:
|: D:\Python22\Lib\__init__.py
|I didn't think about that one... cool! You're right though: the one
|problem I'd see about is that this would be platform specific, as
|Python's libraries live in "lib/pythonX.X" on some Unix systems.
It doesn't come "out of the box" this way, but you could easily create
your own directory on the import path that was a link to the actual
library path. And you could name it something like 'std' or '__std__'.
Once such a link was added, the OP's prefered import form will work.
--
mertz@ _/_/_/_/_/_/_/ THIS MESSAGE WAS BROUGHT TO YOU BY:_/_/_/_/ v i
gnosis _/_/ Postmodern Enterprises _/_/ s r
.cx _/_/ MAKERS OF CHAOS.... _/_/ i u
_/_/_/_/_/ LOOK FOR IT IN A NEIGHBORHOOD NEAR YOU_/_/_/_/_/ g s
More information about the Python-list
mailing list