MCPcopy 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

72print("Example 3")
73class 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