[issue44069] pathlib.Path.glob's generator is not a real generator

Serhiy Storchaka report at bugs.python.org
Thu May 13 03:42:27 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

The reason is different. The scandir() iterator should be closed before we go recursively deep in the directory tree. Otherwise we can reach the limit of open file descriptors (especially if several glob()s are called in parallel). See issue22167.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list