[issue27086] Add closefd argument to os.listdir

Evgeny Kapun report at bugs.python.org
Sun May 22 16:45:47 EDT 2016


Evgeny Kapun added the comment:

Not a problem, just two unnecessary syscalls. Also, I think that many of those who pass a file descriptor to os.listdir don't need it afterwards, because after you fstat() a file descriptor (to discover that it points to a directory) and read the directory contents, there are few things you can use it for.

----------

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


More information about the Python-bugs-list mailing list