MCPcopy Index your code
hub / github.com/python/cpython / __setattr__

Method __setattr__

Lib/_threading_local.py:103–109  ·  view source on GitHub ↗
(self, name, value)

Source from the content-addressed store, hash-verified

101 return object.__getattribute__(self, name)
102
103 def __setattr__(self, name, value):
104 if name == '__dict__':
105 raise AttributeError(
106 "%r object attribute '__dict__' is read-only"
107 % self.__class__.__name__)
108 with _patch(self):
109 return object.__setattr__(self, name, value)
110
111 def __delattr__(self, name):
112 if name == '__dict__':

Callers 2

_patchFunction · 0.45
__new__Method · 0.45

Calls 1

_patchFunction · 0.70

Tested by

no test coverage detected