Serhiy Storchaka added the comment:

Since the close() method can be added only in 3.6, but we have leaks in 3.5 
too, I suggest to closed file descriptor if error happened during iteration 
(issue26117). This will allow to write safe code even in 3.5.

----------

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

Reply via email to