MCPcopy Create free account
hub / github.com/numpy/numpy / __setattr__

Method __setattr__

numpy/lib/user_array.py:251–258  ·  view source on GitHub ↗
(self, attr, value)

Source from the content-addressed store, hash-verified

249 return self.__class__(args[0])
250
251 def __setattr__(self, attr, value):
252 if attr == 'array':
253 object.__setattr__(self, attr, value)
254 return
255 try:
256 self.array.__setattr__(attr, value)
257 except AttributeError:
258 object.__setattr__(self, attr, value)
259
260 # Only called after other approaches fail.
261 def __getattr__(self, attr):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected