Python - Classes and Object Lifecycle
Why does the following code create two different objects even though they have the same attribute values?
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
p1 = Point(1, 2)
p2 = Point(1, 2)
print(p1 == p2)