[Python-Dev] Re: weakref gc semantics
Tim Peters
tim.peters at gmail.com
Fri Nov 5 02:42:15 CET 2004
[Greg Ewing]
> 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?
If it's a builtin weakref object, yes. Weakref subclasses can add
useful data, though. The way Python's weak dictionaries exploit this
was explained earlier in the thread.
More information about the Python-Dev
mailing list