[Python-Dev] PEP 380 ("yield from") is now Final

Antoine Pitrou solipsis at pitrou.net
Fri Jan 13 18:54:29 CET 2012


On Fri, 13 Jan 2012 22:14:43 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> I marked PEP 380 as Final this evening, after pushing the tested and
> documented implementation to hg.python.org:
> http://hg.python.org/cpython/rev/d64ac9ab4cd0

I don't know if this is supposed to work, but the exception looks wrong:

>>> def g(): yield from ()
... 
>>> f = list(g())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in g
SystemError: error return without exception set


Also, the checkin lacked a bytecode magic number bump. It is not really
a problem since I've just bumped it anyway.

Regards

Antoine.




More information about the Python-Dev mailing list