[Python-Dev] Making weakref callbacks safe in cyclic gc
Tim Peters
tim at zope.com
Sun Nov 16 22:24:33 EST 2003
[Tim, sketches a Grand Scheme for making weakref callbacks from cyclic
garbage wholly sane, then asks ..]
>> Objections?
[Jeremy Hylton]
> None here, but you knew that.
Great!
> Everyone seems to be interested in this topic, though.
Then I expect everyone to volunteer to test the patch <wink>.
> How hard is the implementation going to be?
I just made a patch while running my final tests, so I have a pretty solid
proof that what I sketched was implementable <wink>. It's exactly the
scheme I described, and the coding went smoothly because it was something
that could be (and was) fully thought-out in advance. That doesn't rule out
conceptual or coding errors, though.
Now I'll stop typing until I know whether all the tests pass ...
OK, here's the patch:
http://www.python.org/sf/843455
I asked especially for Neal's (Mr. GC) and Fred's (Mr. WeakRef) reviews, but
all reviews are welcome.
More information about the Python-Dev
mailing list