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

Method __init__

example_code/item_051.py:184–187  ·  view source on GitHub ↗
(self, *, value=None)

Source from the content-addressed store, hash-verified

182print("Example 19")
183class MyContainer:
184 def __init__(self, *, value=None):
185 if value is None:
186 value = [] # Create when not supplied
187 self.value = value
188
189
190print("Example 20")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected