[Python-ideas] Why not break cycles with one __del__?

Jim Jewett jimjjewett at gmail.com
Mon Sep 13 18:16:36 CEST 2010


On Mon, Sep 13, 2010 at 8:09 AM, yoav glazner <yoavglazner at gmail.com> wrote:
> why not let python gc break cycles with only one
> object.__del__ ?

If you can point to the code that prevents this, please report a bug.

The last time I checked, there were proposals toeither  add a
__close__ or weaken __del__ to handle multi-__del__ cycles -- but
single-__del__ cycles were already handled OK.

-jJ



More information about the Python-ideas mailing list