Message187423
In a sense, doing something like "with self.lock" in a generator is already a leak. Even if there wasn't a cycle, collection could be arbitrarily delayed (in partincular on non-CPython VMs). I wonder if making generators context managers which call close() on exit would help. |
|
Date |
User |
Action |
Args |
2013-04-20 13:19:43 | benjamin.peterson | set | recipients:
+ benjamin.peterson, amaury.forgeotdarc, ncoghlan, pitrou, vstinner, docs@python, Anssi.Kääriäinen, pconnell, isoschiz |
2013-04-20 13:19:43 | benjamin.peterson | set | messageid: <1366463983.04.0.0778469066172.issue17468@psf.upfronthosting.co.za> |
2013-04-20 13:19:43 | benjamin.peterson | link | issue17468 messages |
2013-04-20 13:19:42 | benjamin.peterson | create | |
|