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

Class TraceDict

example_code/item_066.py:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79print("Example 2")
80class TraceDict(dict):
81 @trace_func
82 def __init__(self, *args, **kwargs):
83 return super().__init__(*args, **kwargs)
84
85 @trace_func
86 def __setitem__(self, *args, **kwargs):
87 return super().__setitem__(*args, **kwargs)
88
89 @trace_func
90 def __getitem__(self, *args, **kwargs):
91 return super().__getitem__(*args, **kwargs)
92
93
94print("Example 3")

Callers 1

item_066.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected