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

Method __setitem__

numpy/ma/mrecords.py:326–333  ·  view source on GitHub ↗

Sets the given record to value.

(self, indx, value)

Source from the content-addressed store, hash-verified

324 return obj
325
326 def __setitem__(self, indx, value):
327 """
328 Sets the given record to value.
329
330 """
331 MaskedArray.__setitem__(self, indx, value)
332 if isinstance(indx, str):
333 self._mask[indx] = ma.getmaskarray(value)
334
335 def __str__(self):
336 """

Callers 1

__setattr__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected