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

Method __setstate__

Lib/test/test_copy.py:248–249  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

246 def __init__(self, foo):
247 self.foo = foo
248 def __setstate__(self, state):
249 self.foo = state["foo"]
250 def __eq__(self, other):
251 return self.foo == other.foo
252 x = C(42)

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected