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

Method __setstate__

tools/python-3.11.9-amd64/Lib/uuid.py:233–238  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

231 return d
232
233 def __setstate__(self, state):
234 object.__setattr__(self, 'int', state['int'])
235 # is_safe was added in 3.7; it is also omitted when it is "unknown"
236 object.__setattr__(self, 'is_safe',
237 SafeUUID(state['is_safe'])
238 if 'is_safe' in state else SafeUUID.unknown)
239
240 def __eq__(self, other):
241 if isinstance(other, UUID):

Callers 1

_reconstructFunction · 0.45

Calls 2

SafeUUIDClass · 0.85
__setattr__Method · 0.45

Tested by

no test coverage detected