Stefan Krah <[email protected]> added the comment:
So I think the good version proceeds to refresh the _path_cache:
<_FileFinder(_relaxed_path_cache={'pep3147'}, packages=[('.py', <type at remote
0xaaff60>), ('.pyc', <type at remote 0xab02e0>)], _path_mtime=<float at remote
0xa66120>, modules=[('.cpython-33m.so', <type at remote 0xab0970>),
('.abi3.so', <type at remote 0xab0970>), ('.so', <type at remote 0xab0970>),
('.py', <type at remote 0xaaff60>), ('.pyc', <type at remote 0xab02e0>)],
path='.', _cache_refresh=0, _path_cache={'pep3147'}) at remote 0x7ffff2b7f6d0>
And the bad version still contains an empty set:
<_FileFinder(_relaxed_path_cache=set(), path='.', packages=[('.py', <type at
remote 0xab4bc0>), ('.pyc', <type at remote 0xab4f40>)], _path_cache=set(),
_cache_refresh=0, _path_mtime=<float at remote 0xa6a7d0>,
modules=[('.cpython-33m.so', <type at remote 0xab55d0>), ('.abi3.so', <type at
remote 0xab55d0>), ('.so', <type at remote 0xab55d0>), ('.py', <type at remote
0xab4bc0>), ('.pyc', <type at remote 0xab4f40>)]) at remote 0x7ffff4128310>
This probably means that the case split occurs in
Lib/importlib/_bootstrap.py:780 ...
if mtime != self._path_mtime or _cache_refresh != self._cache_refresh:
self._fill_cache()
self._path_mtime = mtime
self._cache_refresh = _cache_refresh
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14080>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com