Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ MyObject
Class
MyObject
example_code/item_115/tracemalloc/waste_memory.py:20–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
18
import
os
19
20
class
MyObject:
21
def
__init__(self):
22
self.data = os.urandom(100)
23
24
def
get_data():
25
values = []
Callers
1
get_data
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected