[issue22167] iglob() has misleading documentation (does indeed store names internally)

Guido van Rossum report at bugs.python.org
Sun May 31 14:00:25 EDT 2020


Guido van Rossum <guido at python.org> added the comment:

Hm, yeah.

Perhaps we can add some buffering so that for directories with a small
number of files (say < 1000) the FD is closed before recursing into it,
while for large directories it keeps the FD open until the last block of
1000 DirEntries is read? It's unlikely that someone has a tree that's both
deep *and* wide at many levels, since that would mean an inordinate number
of files indeed.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue22167>
_______________________________________


More information about the Python-bugs-list mailing list