Commit 26c7f34c authored by Stefan Behnel's avatar Stefan Behnel

merge 0.22.x branch into master

parents c77544c6 58c92bb6
# mode: run # mode: run
# tag: generators, lambda # tag: generators, lambda
try:
from builtins import next # Py3k
except ImportError:
def next(it):
return it.next()
def test_inside_lambda(): def test_inside_lambda():
""" """
...@@ -14,8 +9,7 @@ def test_inside_lambda(): ...@@ -14,8 +9,7 @@ def test_inside_lambda():
1 1
>>> next(obj) >>> next(obj)
2 2
>>> next(obj) >>> try: next(obj)
Traceback (most recent call last): ... except StopIteration: pass
StopIteration
""" """
return lambda:((yield 1), (yield 2)) return lambda:((yield 1), (yield 2))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment