[Python-ideas] Revised**7 PEP on Yield-From

Jacob Holm jh at improva.dk
Fri Mar 20 02:07:34 CET 2009


Sorry about the garbled diff... Here is the real diff between expected 
and actual output when I run my patch on test19.

- Jacob

--- expected/test19.py.out	2009-02-22 09:51:26.000000000 +0100
+++ actual/test19.py.out	2009-03-20 02:06:52.000000000 +0100
@@ -7,8 +7,8 @@
 Traceback (most recent call last):
   File "test19.py", line 20, in <module>
     for y in gi:
-  File "test19.py", line 16, in g2
-    yield from gi
   File "test19.py", line 9, in g1
     yield from g2()
+  File "test19.py", line 16, in g2
+    yield from gi
 ValueError: generator already executing





More information about the Python-ideas mailing list