Message259920
| 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 |
<CAMpsgwa_4-JnvvCNBd-3o9zkzqpR6H0N9a2fzQZkEM4fbs0qCw@mail.gmail.com> |
| In-reply-to |
<1454976071.51.0.84629967499.issue25994@psf.upfronthosting.co.za> |
| Content |
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
exhausted. |
|