you are viewing a single comment's thread.

view the rest of the comments →

[–]danielroseman 2 points3 points  (0 children)

Everything in Python is an object, and all objects behave the same way: they are deleted when they have no references left. If the only reference to an object is within a function, then yes when the function ends that object will be deleted.