I'm playing with python lists and I want to delete from memory a list when it's not used.(I have large data lists maybe thousands or million of elements..data type-> float)
I tried this code to see how deletion works in python(example)
import sys
array=[[12,34,54],[23,45,54,67]]
print(sys.getsizeof(array)) # it gives me result 80
#then
del(array[:])
print(sys.getsizeof(array)) #it gives me result 64?
why is that happens?shouldn't it be zero? Is there some overhead? just curious