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 scoder
Recipients abarry, scoder, serhiy.storchaka
Date 2019-04-27.17:32:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I don't think there is a need for a close() method. Instead, the iterator should close the file first thing when it's done with it, but only if it owns it. Therefore, the fix in issue 25688 seems correct.

Closing can also be done explicitly in a finaliser of the iterator, if implicit closing via decref is too lax.
Date User Action Args
2019-04-27 17:32:50scodersetrecipients: + scoder, serhiy.storchaka, abarry
2019-04-27 17:32:50scodersetmessageid: <>
2019-04-27 17:32:50scoderlinkissue25707 messages
2019-04-27 17:32:50scodercreate