Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44069>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to