MCPcopy Index your code
hub / github.com/RustPython/RustPython / __setstate

Method __setstate

Lib/_pydatetime.py:1278–1280  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

1276 return bytes([yhi, ylo, self._month, self._day]),
1277
1278 def __setstate(self, string):
1279 yhi, ylo, self._month, self._day = string
1280 self._year = yhi * 256 + ylo
1281
1282 def __reduce__(self):
1283 return (self.__class__, self._getstate())

Callers 1

__new__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected