[Python-Dev] Re[3]: Patch level versions and new features (Was: Some dull gc stats)

M.-A. Lemburg mal@lemburg.com
Fri, 05 Jul 2002 19:19:03 +0200


Martin v. Loewis wrote:
> Gerhard H=E4ring <gerhard.haering@gmx.de> writes:
>=20
>=20
>>This might sound clueless, but wouldn't it be a good idea to change tha=
t?
>>So that site-packages comes before Lib/ in sys.path?
>=20
>=20
> No, this is by design, to prevent people from overriding the standard
> library. Essentially, all module names in the standard library are
> reserved; this procedure enforces that (somewhat, you can always
> insert things in the beginning of sys.path).

Uhm, just for the record: all paths defined in PYTHONPATH
are inserted before the std lib dirs in sys.path on startup,
so the "restriction" is not really all that restrictive.

--=20
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/