I cant really show my code but i can explain the problem. Im using python 2.7 and I created 2 instances of a class I wrote. For some reason when i change the field of lets say email in one instance, the same field will change to the same value on the other instance. Does anyone know of such a problem or what did I do wrong? if more explanation is needed please tell me
example:
class EX:
def __init__(self, _email = " "):
set_email(_email)
def get_email(self):
return self._email
def set_email(self, email):
self._email = email
if __name__ == '__main__':
ex1 = EX()
ex2 = EX()
ex1.set_email("user@user.com")
print ex1.get_email() #both print the same "user@user.com"
print ex2.get_email()