This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:33ncoghlansetrecipients: + ncoghlan, brett.cannon, docs@python, kota
2011-07-31 08:20:33ncoghlansetmessageid: <1312100433.29.0.462964389752.issue12648@psf.upfronthosting.co.za>
2011-07-31 08:20:32ncoghlanlinkissue12648 messages
2011-07-31 08:20:32ncoghlancreate