l = [1, 2, 3]
del l
From the python docs:
It is not guaranteed that
__del__()
methods are called for objects that still exist when the interpreter exits.
Does this mean that the list object, in this case l
, will not be deleted even when the interpreter exits? I mean when the program exits, aren't all the objects reclaimed?