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

Method __init__

example_code/item_051.py:173–174  ·  view source on GitHub ↗
(self, *, value=[])

Source from the content-addressed store, hash-verified

171print("Example 18")
172class BadContainer:
173 def __init__(self, *, value=[]):
174 self.value = value
175
176obj1 = BadContainer()
177obj2 = BadContainer()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected