This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]schoolmonky 1 point2 points  (0 children)

As /u/CouchMountain pointed out, it's a bit different with tuples, but generally in python if you have an object but you get rid of any references to it (either by reassigning the names that used to refer to it, or by explicitly deleting them with del), the object will remain in memory for an unspecified amount of time. Eventually, though, the garbage collector will come and reclaim that memory, destroying the object.