]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
perform yield from delegation by repeating YIELD_FROM opcode (closes #14230)
authorBenjamin Peterson <benjamin@python.org>
Thu, 15 Mar 2012 20:37:39 +0000 (15:37 -0500)
committerBenjamin Peterson <benjamin@python.org>
Thu, 15 Mar 2012 20:37:39 +0000 (15:37 -0500)
commit2afe6aeae820cf2272c6f9be60b185e1c27b734b
tree806b2e778fa2d90648e9eca16f306769bd804d16
parent3270d11d8aee447e6cbd5388d677b4a23879e80e
perform yield from delegation by repeating YIELD_FROM opcode (closes #14230)

This allows generators that are using yield from to be seen by debuggers. It
also kills the f_yieldfrom field on frame objects.

Patch mostly from Mark Shannon with a few tweaks by me.
Include/frameobject.h
Include/genobject.h
Lib/test/test_pep380.py
Lib/test/test_sys.py
Objects/frameobject.c
Objects/genobject.c
Python/ceval.c
Python/compile.c
Python/import.c