[Python-Dev] [Python-checkins] cpython (3.3): - Issue #16514: Fix regression causing a traceback when sys.path[0] is None
Barry Warsaw
barry at python.org
Tue Nov 20 23:35:49 CET 2012
On Nov 20, 2012, at 05:12 PM, Brett Cannon wrote:
>Should you also insert None into sys.path_importer_cache to signify there
>is no finder for the path entry? I guess the real problem with that is
>there is no guarantee the path entry is hashable, so that probably won't
>work. So nevermind. =)
I explicitly popped None from path_importer_cache, to try to force it to
ignore the cache. Maybe it's not totally correct (and in practice probably
doesn't matter), but it WFM.
-Barry
More information about the Python-Dev
mailing list