summaryrefslogtreecommitdiff
path: root/pypers/oxford/point.py
blob: 4145b0d62b969228643be15e992471794df415ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# point.py

class NotWorkingPoint(tuple):
    def __init__(self, x, y):
        super(NotWorkingPoint, self).__init__((x,y))
        self.x, self.y = x, y



class Point(tuple):
    def __new__(cls, x, y):
        return super(Point, cls).__new__(cls, (x,y))
    def __init__(self, x, y):
        super(Point, self).__init__((x, y))
        self.x, self.y = x, y