Skip to content

Commit

Permalink
Make delegate() pass its argument to fib()
Browse files Browse the repository at this point in the history
  • Loading branch information
sleinen committed Feb 25, 2018
1 parent 8083859 commit 3e0415c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/notes/python-new-py3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ Generator delegation
... b, a = a + b, b
...
>>> def delegate(n: int):
... yield from fib(10)
... yield from fib(n)
...
>>> list(delegate(10))
[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
Expand Down

0 comments on commit 3e0415c

Please sign in to comment.