[issue25994] File descriptor leaks in os.scandir()

Martin Panter report at bugs.python.org
Mon Feb 8 20:45:36 EST 2016


Martin Panter added the comment:

I would be in favour of adding a ResourceWarning in 3.6 if the iterator is garbage collected without being exhausted. But as Josh says, it might be overkill emitting a warning when we already know the iterator has been finished and cleaned up.

----------

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


More information about the Python-bugs-list mailing list