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

Method __init__

example_code/item_029.py:197–198  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

195print("Example 11")
196class Student:
197 def __init__(self):
198 self._subjects = defaultdict(Subject)
199
200 def get_subject(self, name):
201 return self._subjects[name]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected