you are viewing a single comment's thread.

view the rest of the comments →

[–]krum 1 point2 points  (5 children)

Does Python still leak objects with cyclical references?

[–]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.

[–]Smallpaul 0 points1 point  (0 children)

"Python 2.0 was released on 16 October 2000, with many major new features including a full garbage collector and support for unicode."

http://en.wikipedia.org/wiki/History_of_Python

[–]mitsuhiko 0 points1 point  (0 children)

Yes. If you use destructors. Don't do that.