Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bslatkin/effectivepython
/ my_generator
Function
my_generator
example_code/item_046.py:77–79 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
75
76
print(
"Example 3"
)
77
def
my_generator():
78
received =
yield
1
79
print(f
"{received=}"
)
80
81
it = my_generator()
82
output = next(it)
# Get first generator output
Callers
1
item_046.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected