Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __init__
Method
__init__
example_code/item_124.py:64–65 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
62
print(
"Example 3"
)
63
class
Counter:
64
def
__init__(self):
65
self.value = 0
66
67
def
add(self, offset):
68
value += offset
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected