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

Method __init__

example_code/item_107.py:201–204  ·  view source on GitHub ↗
(self, level=0, points=0, magic=5)

Source from the content-addressed store, hash-verified

199
200class BetterGameState:
201 def __init__(self, level=0, points=0, magic=5):
202 self.level = level
203 self.points = points
204 self.magic = magic
205
206
207print("Example 22")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected