Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
182
print(
"Example 19"
)
183
class
MyContainer:
184
def
__init__(self, *, value=None):
185
if
value is None:
186
value = []
# Create when not supplied
187
self.value = value
188
189
190
print(
"Example 20"
)
Callers
1
item_051.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected