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

Method __init__

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

Source from the content-addressed store, hash-verified

92print("Example 8")
93class OpaqueClass:
94 def __init__(self, x, y):
95 self.x = x
96 self.y = y
97
98obj = OpaqueClass(1, "foo")
99print(obj)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected