cpython: 05b3a23b3836 (original) (raw)

Mercurial > cpython

changeset 90240:05b3a23b3836 3.4

fix sending tuples to custom generator objects with yield from (closes #21209) Debugged by Victor. [#21209]

Benjamin Peterson benjamin@python.org
date Sun, 13 Apr 2014 23:52:01 -0400
parents 7b95540ced5c
children d1eba2645b80 fb7bc8fe0d49
files Lib/test/test_pep380.py Misc/NEWS Python/ceval.c
diffstat 3 files changed, 23 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_pep380.py 19 Misc/NEWS 3 Python/ceval.c 2

line wrap: on

line diff

--- a/Lib/test/test_pep380.py +++ b/Lib/test/test_pep380.py @@ -993,6 +993,25 @@ class TestPEP380Operation(unittest.TestC del inner_gen gc_collect()

+ def test_main(): from test import support

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -10,6 +10,9 @@ Release date: TBA Core and Builtins ----------------- +- Issue #21209: Fix sending tuples to custom generator objects with the yield

--- a/Python/ceval.c +++ b/Python/ceval.c @@ -1902,7 +1902,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int if (v == Py_None) retval = Py_TYPE(reciever)->tp_iternext(reciever); else