Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __setattr__
Method
__setattr__
example_code/item_061.py:143–146 ·
view source on GitHub ↗
(self, name, value)
Source
from the content-addressed store, hash-verified
141
print(
"Example 8"
)
142
class
SavingRecord:
143
def
__setattr__(self, name, value):
144
# Save some data for the record
145
pass
146
super().__setattr__(name, value)
147
148
149
print(
"Example 9"
)
Callers
1
__setattr__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected