Author serhiy.storchaka
Recipients benhoyt, haypo, serhiy.storchaka
Date 2016-01-03.06:31:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1451802711.13.0.65815497815.issue25994@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it's what I mean. Add methods close, __enter__ and __exit__ to the iterator. The scandir iterator is not just iterator, it is like file object.

And as in file object, we perhaps have to emit a ResourceWarning in the destructor if close() or __exit__() were not called.
History
Date User Action Args
2016-01-03 06:31:51serhiy.storchakasetrecipients: + serhiy.storchaka, haypo, benhoyt
2016-01-03 06:31:51serhiy.storchakasetmessageid: <1451802711.13.0.65815497815.issue25994@psf.upfronthosting.co.za>
2016-01-03 06:31:51serhiy.storchakalinkissue25994 messages
2016-01-03 06:31:50serhiy.storchakacreate