[issue25996] Add support of file descriptor in os.scandir()

STINNER Victor report at bugs.python.org
Sat Jan 2 17:38:59 EST 2016


STINNER Victor added the comment:

Yeah, it was discussed when the PEP 471 was designed, but it was already hard to design os.scandir() without supporting fd as os.scandir() parameter.

It's more complex because we have to handle the lifetime of the file descriptor especially if it's exposed in a public attribute.

----------

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


More information about the Python-bugs-list mailing list