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 martin.panter, ncoghlan, njs, vstinner, yselivanov
Date 2016-11-14.07:15:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwY0+uzv3Qjr=FQB9uA2S1EGmYRcVdfj4BM+w+9Y7EfdeQ@mail.gmail.com>
In-reply-to <1479093056.25.0.977008903733.issue28629@psf.upfronthosting.co.za>
Content
> del gen  # Like deleting a plain iterator; no ResourceWarning expected

Hum, wait, I'm not sure that I got the whole point of this issue.

If the generator uses "with obj:", "del gen" will not call obj.__exit__().

Do you consider that "del gen" is better to clear obj than not known
when gen and obj are destroyed?

Is there a solution to call obj.__exit__()?
History
Date User Action Args
2016-11-14 07:15:53vstinnersetrecipients: + vstinner, ncoghlan, njs, martin.panter, yselivanov
2016-11-14 07:15:53vstinnerlinkissue28629 messages
2016-11-14 07:15:53vstinnercreate