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

Class LoggingSavingRecord

example_code/item_061.py:150–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149print("Example 9")
150class LoggingSavingRecord(SavingRecord):
151 def __setattr__(self, name, value):
152 print(f"* Called __setattr__({name!r}, {value!r})")
153 super().__setattr__(name, value)
154
155data = LoggingSavingRecord()
156print("Before: ", data.__dict__)

Callers 1

item_061.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected