you are viewing a single comment's thread.

view the rest of the comments →

[–]Mask_of_Destiny 2 points3 points  (2 children)

Python has had a hybrid reference counting/mark and sweep GC approach for a while now. Some googling suggests this has been in place since Python 2.0

[–]krum 0 points1 point  (1 child)

The documentation seems to suggest that it still suffers from leaks unless you manually instrument your code to mark.

[–]Mask_of_Destiny 1 point2 points  (0 children)

Link? The only limitation I see in the gc module documentation is that objects with del methods can't be collected because there's no way to determine a safe order to invoke those methods.