MCPcopy Index your code
hub / github.com/python/cpython / _getstate

Method _getstate

Lib/_pydatetime.py:1289–1291  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1287 # Pickle support.
1288
1289 def _getstate(self):
1290 yhi, ylo = divmod(self._year, 256)
1291 return bytes([yhi, ylo, self._month, self._day]),
1292
1293 def __setstate(self, string):
1294 yhi, ylo, self._month, self._day = string

Callers 5

__hash__Method · 0.95
__reduce__Method · 0.95
_cmpMethod · 0.45
__hash__Method · 0.45
__hash__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected