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 vstinner
Recipients benhoyt, gvanrossum, josh.r, martin.panter, serhiy.storchaka, vstinner
Date 2016-02-09.09:18:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
Josh Rosenberg added the comment:
> Adding a ResourceWarning even if the generator is run to completion?

I'm ok to only emit the warning is the generator is not exhausted.

The warning would be emited in the destructor if the generator is not
closed. In practice, the generator is *already* closed on the last
file, so the warning would not be emited if the generator is
Date User Action Args
2016-02-09 09:18:36vstinnersetrecipients: + vstinner, gvanrossum, benhoyt, martin.panter, serhiy.storchaka, josh.r
2016-02-09 09:18:36vstinnerlinkissue25994 messages
2016-02-09 09:18:36vstinnercreate