Message341003
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:50 | scoder | set | recipients:
+ scoder, serhiy.storchaka, abarry |
2019-04-27 17:32:50 | scoder | set | messageid: <1556386370.43.0.0163864162061.issue25707@roundup.psfhosted.org> |
2019-04-27 17:32:50 | scoder | link | issue25707 messages |
2019-04-27 17:32:50 | scoder | create | |
|