# -*- coding: cp1252 -*-
class Point(object):
    def __init__(self, x=0.0, y=0.0):
        self.x = x
        self.y = y

    #def __eq__(self, p2):
    #    if type(p2) != type(self):
    #        return False
    #    return self.x == p2.x and self.y == p2.y

    #def __repr__(self):
    #    s = "(" + str(self.x) + "," + str(self.y) + ")"
    #    return s

def main():
    p1 = Point(0.0, 0.0)
    p2 = Point(42.0, 42.0)

    p1 = p2
    p1.x = 60.0
    print "p2.x is", p2.x
    #print p1



def main2():
    p1 = Point(0.0, 0.0)
    p2 = Point(0.0, 0.0)
    if p1 == p2:
       print "Equally valid points!"
    else:
       print "They’re not equal!"
    #print p1

if __name__ == '__main__':
    main2()
