Message280736
> 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__()? |
|
Date |
User |
Action |
Args |
2016-11-14 07:15:53 | vstinner | set | recipients:
+ vstinner, ncoghlan, njs, martin.panter, yselivanov |
2016-11-14 07:15:53 | vstinner | link | issue28629 messages |
2016-11-14 07:15:53 | vstinner | create | |
|