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

Method __init__

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

Source from the content-addressed store, hash-verified

179print("Example 10")
180class Subject:
181 def __init__(self):
182 self._grades = []
183
184 def report_grade(self, score, weight):
185 self._grades.append(Grade(score, weight))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected