[issue28629] Emit ResourceWarning when implicitly terminating a suspended frame?
Nick Coghlan
report at bugs.python.org
Mon Nov 14 07:16:23 EST 2016
Nick Coghlan added the comment:
Oops, I forgot to mention one other potential cost-minimisation strategy for a `co_cleanuptab` field: only populate it with setup/cleanup opcode pairs that include a yield, yield from, or await operation between them.
The potential benefit I can see to *not* doing that is that if the information is always available (even on synchronous frames), then greenlet based frameworks like gevent may be able to make use of it.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28629>
_______________________________________
More information about the Python-bugs-list
mailing list