[issue17899] os.listdir() leaks FDs if invoked on FD pointing to a non-directory

Evgeny Kapun report at bugs.python.org
Sat May 4 08:17:17 CEST 2013


Evgeny Kapun added the comment:

Simple test:

while True:
    try:
        listdir(0)
    except NotADirectoryError:
        pass

----------

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


More information about the Python-bugs-list mailing list