I've searched and couldn't find any good answer. Let's say that I have some list that have thousands of entries or something else that consumes a lot of memory. Is it good idea to change this list/etc. value to 0...
oldlst = 0
...if it's no longer needed (or won't be updated in a very long time) or should I leave it alone in program. Or maybe there is better way to handle this.
Example:
L = range(50*2000*1000)
raw_input("Press Enter")
L = 0
print L
When I run this command I use 838.1 MB of RAM after pressing enter and changing L to just 0 I release some of the memory taken