MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / __init__

Method __init__

example_code/item_047.py:149–151  ·  view source on GitHub ↗
(self, period)

Source from the content-addressed store, hash-verified

147print("Example 5")
148class Timer:
149 def __init__(self, period):
150 self.current = period
151 self.period = period
152
153 def reset(self):
154 print("Resetting")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected