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

Method __init__

example_code/item_063.py:206–208  ·  view source on GitHub ↗
(self, magnitude)

Source from the content-addressed store, hash-verified

204
205class Vector1D(BetterRegisteredSerializable):
206 def __init__(self, magnitude):
207 super().__init__(magnitude)
208 self.magnitude = magnitude
209
210
211print("Example 14")

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected