[issue25995] os.walk() consumes a lot of file descriptors

Guido van Rossum report at bugs.python.org
Mon Jan 11 16:10:38 EST 2016


Guido van Rossum added the comment:

I don't like the first solution (it just collects all scandir() results in a list, which defeats one of the purposes of using scandir()), but I don't understand the second solution.

Ideally the number of FDs used should be limited by the depth of the tree being walked, right?

----------
nosy: +gvanrossum

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


More information about the Python-bugs-list mailing list