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

Method __reduce__

numpy/ma/mrecords.py:477–484  ·  view source on GitHub ↗

Return a 3-tuple for pickling a MaskedArray.

(self)

Source from the content-addressed store, hash-verified

475 self.fill_value = flv
476
477 def __reduce__(self):
478 """
479 Return a 3-tuple for pickling a MaskedArray.
480
481 """
482 return (_mrreconstruct,
483 (self.__class__, self._baseclass, (0,), 'b',),
484 self.__getstate__())
485
486
487def _mrreconstruct(subtype, baseclass, baseshape, basetype,):

Callers

nothing calls this directly

Calls 1

__getstate__Method · 0.95

Tested by

no test coverage detected