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

Method __reduce__

numpy/ma/core.py:6310–6316  ·  view source on GitHub ↗

Return a 3-tuple for pickling a MaskedArray.

(self)

Source from the content-addressed store, hash-verified

6308 self.fill_value = flv
6309
6310 def __reduce__(self):
6311 """Return a 3-tuple for pickling a MaskedArray.
6312
6313 """
6314 return (_mareconstruct,
6315 (self.__class__, self._baseclass, (0,), 'b',),
6316 self.__getstate__())
6317
6318 def __deepcopy__(self, memo=None):
6319 from copy import deepcopy

Callers 6

test_mutateMethod · 0.45
test_setstateMethod · 0.45
test_pickle_voidMethod · 0.45
__getstate__Method · 0.45

Calls 1

__getstate__Method · 0.95

Tested by 5

test_mutateMethod · 0.36
test_setstateMethod · 0.36
test_pickle_voidMethod · 0.36