Xavier de Gaye added the comment:

os.scandir() is called recursively in the last patch and the file descriptors 
are not closed until returning from the recursion.
The glob functions should fail explicitly when scandir() raises OSERROR with 
posix errno set to EMFILE (The process has too many files open), or even 
better, silently ignore only the PermissionError exception instead of ignoring 
OSERROR.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25596>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to