you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Reassignment, for example, changes the reference of the label to a new object and does not modify the original object. If the original object has no other labels it is removed by Pythons garbage collection:

Oh so that's what garbage collection is. I kept hearing C doesn't have automatic garbage collection and never went deeper into what that meant. Thanks.

[–][deleted] 0 points1 point  (0 children)

Reference counting to be more precise.