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

Method __init__

example_code/item_012.py:104–106  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

102print("Example 9")
103class BetterClass:
104 def __init__(self, x, y):
105 self.x = x
106 self.y = y
107
108 def __repr__(self):
109 return f"BetterClass({self.x!r}, {self.y!r})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected