Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __init__
Method
__init__
example_code/item_027.py:74–75 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
72
print(
"Example 3"
)
73
class
Visits:
74
def
__init__(self):
75
self.data = {}
76
77
def
add(self, country, city):
78
city_set = self.data.setdefault(country, set())
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected