From 0e3329a6b82873531f63fb1358f57852723fad05 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 11 Apr 2014 13:10:21 +0000 Subject: py, compiler: Allow lambda's to yield. --- tests/bytecode/mp-tests/yield2.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/bytecode') diff --git a/tests/bytecode/mp-tests/yield2.py b/tests/bytecode/mp-tests/yield2.py index 140fe0795..acc0ec8e9 100644 --- a/tests/bytecode/mp-tests/yield2.py +++ b/tests/bytecode/mp-tests/yield2.py @@ -2,3 +2,6 @@ def f(): yield from a yield from (a, b) yield from f(a) + +lambda:(yield) +lambda:(yield 1) + 2 -- cgit v1.2.3