MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _getstate

Method _getstate

tools/python-3.11.9-amd64/Lib/datetime.py:1201–1203  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1199 # Pickle support.
1200
1201 def _getstate(self):
1202 yhi, ylo = divmod(self._year, 256)
1203 return bytes([yhi, ylo, self._month, self._day]),
1204
1205 def __setstate(self, string):
1206 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