If I have the following code:
class derp:
def __init__(self, number):
self.number = number
x = derp(1)
x = derp(2)
Will the instance that had the number attribute of 1 be replaced or will it persist?
If I have the following code:
class derp:
def __init__(self, number):
self.number = number
x = derp(1)
x = derp(2)
Will the instance that had the number attribute of 1 be replaced or will it persist?