Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ do_yield
Function
do_yield
17-it-generator/yield_delegate_fix.py:10–11 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
8
# tag::YIELD_DELEGATE_FIX[]
9
def
f():
10
def
do_yield(n):
11
yield
n
12
x = 0
13
while
True:
14
x += 1
Callers
1
f
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected