[Python-Dev] Re: weakref gc semantics

Greg Ewing greg at cosc.canterbury.ac.nz
Fri Nov 5 01:45:15 CET 2004


Neil Schemenauer wrote:
> I think there may be one small problem though.  Callbacks get passed
> the weakref object.  Doesn't that break the rule that trash should
> not be exposed to Python code while the collection is taking place?

Maybe the callback shouldn't be passed the weakref object?
I don't see what good that does anyway, since the weakref
is just an empty shell by then, isn't it?

Greg




More information about the Python-Dev mailing list