Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ get
Method
get
example_code/item_124_example_06.py:29–30 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
27
value += offset
# Oops: forgot "self."
28
29
def
get(self) -> int:
30
self.value
# Oops: forgot "return"
31
32
counter = Counter()
33
counter.add(5)
Callers
1
item_124_example_06.py
File · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected