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

Method persistent_id

Lib/test/test_pickle.py:268–270  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

266
267 def test_pickler_instance_attribute(self):
268 def persistent_id(obj):
269 called.append(obj)
270 return obj
271
272 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
273 f = io.BytesIO()

Callers 3

checkMethod · 0.45
persistent_idMethod · 0.45
_persistent_idMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected