[issue28629] Emit ResourceWarning when implicitly terminating a suspended frame?
STINNER Victor
report at bugs.python.org
Mon Nov 14 02:15:53 EST 2016
STINNER Victor added the comment:
> 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__()?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28629>
_______________________________________
More information about the Python-bugs-list
mailing list