Message141460
| Author |
ncoghlan |
| Recipients |
brett.cannon, docs@python, kota, ncoghlan |
| Date |
2011年07月31日.08:20:32 |
| SpamBayes Score |
6.1287895e-09 |
| Marked as misclassified |
No |
| Message-id |
<1312100433.29.0.462964389752.issue12648@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|