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

Class MyContainer

example_code/item_051.py:183–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181
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 1

item_051.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected