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

Method __setstate__

Lib/uuid.py:284–289  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

282 return d
283
284 def __setstate__(self, state):
285 object.__setattr__(self, 'int', state['int'])
286 # is_safe was added in 3.7; it is also omitted when it is "unknown"
287 object.__setattr__(self, 'is_safe',
288 SafeUUID(state['is_safe'])
289 if 'is_safe' in state else SafeUUID.unknown)
290
291 def __eq__(self, other):
292 if isinstance(other, UUID):

Callers 1

_reconstructFunction · 0.45

Calls 2

SafeUUIDClass · 0.85
__setattr__Method · 0.45

Tested by

no test coverage detected