This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients benhoyt, gvanrossum, martin.panter, serhiy.storchaka, vstinner
Date 2016-01-14.22:39:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452811177.86.0.346300496428.issue25994@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-01-14 22:39:37serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, vstinner, benhoyt, martin.panter
2016-01-14 22:39:37serhiy.storchakasetmessageid: <1452811177.86.0.346300496428.issue25994@psf.upfronthosting.co.za>
2016-01-14 22:39:37serhiy.storchakalinkissue25994 messages
2016-01-14 22:39:37serhiy.storchakacreate