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

Method __init__

example_code/item_063.py:188–190  ·  view source on GitHub ↗
(self, x, y, z)

Source from the content-addressed store, hash-verified

186print("Example 12")
187class Vector3D(RegisteredSerializable):
188 def __init__(self, x, y, z):
189 super().__init__(x, y, z)
190 self.x, self.y, self.z = x, y, z
191
192before = Vector3D(10, -7, 3)
193print("Before: ", before)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected