how to get os.py to use an ./ntpath.py instead of Lib/ntpath.py
Chris Angelico
rosuav at gmail.com
Tue Sep 11 18:50:12 EDT 2012
On Wed, Sep 12, 2012 at 5:13 AM, ruck <john.ruckstuhl at gmail.com> wrote:
> I'm not sure how I could have known that ntpath was already imported, since *I* didn't import it, but that was the key to my confusion.
One way to find out is to peek at the cache.
>>> import sys
>>> sys.modules
There are quite a few of them in the 3.2 interactive that I just tried this in.
ChrisA
More information about the Python-list
mailing list