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

Method getstate

Lib/test/test_descr.py:434–435  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

432 def setstate(self, state):
433 self.state = state
434 def getstate(self):
435 return self.state
436 self.assertIsSubclass(C, dict)
437 a1 = C(12)
438 self.assertEqual(a1.state, 12)

Calls

no outgoing calls

Tested by

no test coverage detected