Message141460
The Windows build actually uses the registry to locate the standard library rather than sys.path. This is by design, but isn't really documented properly.
It means that code on sys.path (even in the current directory) won't shadow standard library modules on Windows.
Due to various arcane details about how it is implemented, the emulation of the main import system that is used to run code with the '-m' switch gets the search order the other way around and hence gives a different answer (the same answer as Linux) in cases like this. |
|
Date |
User |
Action |
Args |
2011-07-31 08:20:33 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, docs@python, kota |
2011-07-31 08:20:33 | ncoghlan | set | messageid: <1312100433.29.0.462964389752.issue12648@psf.upfronthosting.co.za> |
2011-07-31 08:20:32 | ncoghlan | link | issue12648 messages |
2011-07-31 08:20:32 | ncoghlan | create | |
|