MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __setattr__

Method __setattr__

examples/custom_attributes/custom_management.py:65–69  ·  view source on GitHub ↗
(self, key, value)

Source from the content-addressed store, hash-verified

63 raise AttributeError(key)
64
65 def __setattr__(self, key, value):
66 if is_instrumented(self, key):
67 set_attribute(self, key, value)
68 else:
69 self._goofy_dict[key] = value
70
71 def __delattr__(self, key):
72 if is_instrumented(self, key):

Callers

nothing calls this directly

Calls 2

is_instrumentedFunction · 0.90
set_attributeFunction · 0.90

Tested by

no test coverage detected