Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> > lack of real GC for data structures with cycles > This has not been true since (AFAIK) Python 2.0, > which was released 12 years ago.

Sorta.

It seems that CPython still can't garbage collect objects in cycles if those objects have a __del__ method.

See http://www.electricmonk.nl/log/2008/07/07/python-destructor-...

Or see gc.garbage, from http://docs.python.org/release/2.7.3/library/gc.html



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: