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

Method __init__

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

Source from the content-addressed store, hash-verified

78
79class BySubjectGradebook:
80 def __init__(self):
81 self._grades = {} # Outer dict
82
83 def add_student(self, name):
84 self._grades[name] = defaultdict(list) # Inner dict

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected