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

Method __init__

example_code/item_030.py:90–91  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

88print("Example 5")
89class MyClass:
90 def __init__(self, value):
91 self.value = value
92
93x = MyClass(10)
94

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected