Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ A
Class
A
src/9/monkeypatching_class_definitions/example.py:16–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
# Example use
15
@log_getattribute
16
class
A:
17
def
__init__(self,x):
18
self.x = x
19
def
spam(self):
20
pass
21
22
if
__name__ ==
'__main__'
:
23
a = A(42)
Callers
1
example.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected