[Python-Dev] PEP 343 - next steps
Nick Coghlan
ncoghlan at gmail.com
Sun Jun 12 03:26:07 CEST 2005
Nick Coghlan wrote:
> Then all the two new opcodes (e.g. ALLOW_ASYNC, BLOCK_ASYNC) would
> have to do is set the state of tstate->allow_async_exc appropriately.
Actually, to allow the use of 'with' statements inside functions
called via EXPR and the call to __enter__, it would be necessary to
support nesting of calls to BLOCK_ASYNC and ALLOW_ASYNC, so a better
approach would be to make the field "tstate->block_async_exc",
incrementing it in BLOCK_ASYNC, and decrementing it in ALLOW_ASYNC.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://boredomandlaziness.blogspot.com
More information about the Python-Dev
mailing list