Build a frozen, slotted dataclass for immutable 2D points with ordering support.
Constraints
Example
>>> p = Point(1, 2) >>> p.x 1 >>> p.y 2 >>> Point(1, 2) == Point(1, 2) True >>> Point(1, 2) < Point(2, 0) True >>> Point(2, 0) < Point(1, 2) False >>> hasattr(p, '__dict__') False >>> make_point_1_2() [1, 2]
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints