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

Method __setstate

tools/python-3.11.9-amd64/Lib/datetime.py:1205–1207  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

1203 return bytes([yhi, ylo, self._month, self._day]),
1204
1205 def __setstate(self, string):
1206 yhi, ylo, self._month, self._day = string
1207 self._year = yhi * 256 + ylo
1208
1209 def __reduce__(self):
1210 return (self.__class__, self._getstate())

Callers 1

__new__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected