Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/python-mastery
/ printer
Function
printer
Solutions/8_4/cofollow.py:29–35 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
# Sample coroutine
28
@consumer
29
def
printer():
30
while
True:
31
try
:
32
item =
yield
33
print(item)
34
except
Exception
as
e:
35
print(
'ERROR: %r'
% e)
36
37
# Example use.
38
Callers
1
cofollow.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected