How to delete avery reference of an object in Python?
- by Juanjo Conti
Supose you have something like:
x = "something"
b = x
l = [b]
How can you delete the object only having one reference, say a?
del a won't do the tric; the object is still reachable from b, for example.