Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ reset
Method
reset
example_code/item_047.py:153–155 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
151
self.period = period
152
153
def
reset(self):
154
print(
"Resetting"
)
155
self.current = self.period
156
157
def
tick(self):
158
before = self.current
Callers
1
run
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected