Nick Coghlan added the comment:

Low level review sent.

Regarding the new opcode, it appears the main thing it provides is early 
detection of yielding from a coroutine in a normal generator, which is never 
going to work properly (a for loop or other iterative construct can't drive a 
coroutine as it expects to be driven), but would be incredibly painful to debug 
if you did it accidentally.

For me, that counts as a good enough reason to add a new opcode during the beta 
period (just as adding the new types is necessary to fix various problems with 
the original not-actually-a-different-type implementation).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24400>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to