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

Class NewPoint

Lib/test/test_collections.py:690–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

688 for proto in range(pickle.HIGHEST_PROTOCOL + 1):
689 with self.subTest(proto=proto):
690 class NewPoint(tuple):
691 x = pickle.loads(pickle.dumps(Point.x, proto))
692 y = pickle.loads(pickle.dumps(Point.y, proto))
693
694 np = NewPoint([1, 2])
695

Callers 1

test_field_descriptorMethod · 0.85

Calls 2

loadsMethod · 0.45
dumpsMethod · 0.45

Tested by 1

test_field_descriptorMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…