Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ my_generator
Function
my_generator
example_code/item_047.py:55–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
53
pass
54
55
def
my_generator():
56
yield
1
57
yield
2
58
yield
3
59
60
it = my_generator()
61
print(next(it))
# Yields 1
Callers
1
item_047.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected