class Duck():
def __init__(self):
print("complex operation oink oink !!!")
duck = Duck()
duck = None
I suppose that it's a very bad idea but... why ? like i do this a lot of time and it seems to do the work evey time so I'm wondering, is this just purist theorical biase or is this really dangerous and if yes, in which case and how to detect it ? (You can answer yes or no to the title if you feel that the question is too long ^^, or give a link to understand well if the answer is too long)
Thank you in advance