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

Method __setitem__

numpy/ma/tests/test_subclassing.py:101–102  ·  view source on GitHub ↗
(self, index, value)

Source from the content-addressed store, hash-verified

99 return out
100
101 def __setitem__(self, index, value):
102 self._dataiter[index] = self._original._validate_input(value)
103
104 def __next__(self):
105 return next(self._dataiter).__array__().view(type(self._original))

Callers 1

__setitem__Method · 0.45

Calls 1

_validate_inputMethod · 0.80

Tested by

no test coverage detected