MCPcopy Create free account
hub / github.com/python/cpython / _persistent_id

Method _persistent_id

Lib/test/test_pickle.py:305–308  ·  view source on GitHub ↗
(subself, obj)

Source from the content-addressed store, hash-verified

303 def persistent_id(subself, obj):
304 raise AssertionError('should never be called')
305 def _persistent_id(subself, obj):
306 called.append(obj)
307 self.assertIsNone(super().persistent_id(obj))
308 return obj
309
310 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
311 f = io.BytesIO()

Callers

nothing calls this directly

Calls 4

superClass · 0.85
assertIsNoneMethod · 0.80
appendMethod · 0.45
persistent_idMethod · 0.45

Tested by

no test coverage detected