[issue26032] Use scandir() to speed up pathlib globbing

STINNER Victor report at bugs.python.org
Thu Jan 7 03:53:40 EST 2016


STINNER Victor added the comment:

"Another question: for symlinks, there are two different possible stat
results: one for stat() and one for lstat(). Are these both cached
separately?"

Hopefully, both are cached. It's directly the result of stat() and
stat(follow_symlinks=False) which are cached (so a os.stat_result
object).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26032>
_______________________________________


More information about the Python-bugs-list mailing list