MCPcopy Index your code
hub / github.com/RustPython/RustPython / NewPoint

Class NewPoint

Lib/test/test_collections.py:689–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

test_field_descriptorMethod · 0.85

Calls 2

loadsMethod · 0.45
dumpsMethod · 0.45

Tested by 1

test_field_descriptorMethod · 0.68