MCPcopy 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

141print("Example 8")
142class SavingRecord:
143 def __setattr__(self, name, value):
144 # Save some data for the record
145 pass
146 super().__setattr__(name, value)
147
148
149print("Example 9")

Callers 1

__setattr__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected