MCPcopy 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

18import os
19
20class MyObject:
21 def __init__(self):
22 self.data = os.urandom(100)
23
24def get_data():
25 values = []

Callers 1

get_dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected