[Python-Dev] Cycle collection enhancement idea (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Sun Jun 29 14:36:46 CEST 2008


eyal.lotem+pyutils gmail.com <eyal.lotem gmail.com> writes:

That would be no worse than what happens now - but its still not perfect (del ordering issues). Also, you would need to temporarily revive the cycles as mentioned above (to avoid accessibility of partially destructed objects).

The idea is to call all del's before any object in the cycle is deallocated (that is, call them manually rather than as part of deallocating them). That way you shouldn't have the issues mentioned above.



More information about the Python-Dev mailing list