I wonder if I create a large list, for example,
l = list(range(0, 10000000))
and then set it free for the garbage collector
l = None
it does not release all memory (according to memory_profiler
):
Line # Mem usage Increment Occurrences Line Contents
=============================================================
8 427.3 MiB 382.7 MiB 1 l = list(range(0, 10000000))
9 122.3 MiB -305.0 MiB 1 l = None
What is about the remainder?