Issue 983019: Making weakref.ref subclassable (original) (raw)

This patch makes weak references subclassable. This includes the following changes:

The change to the cyclic garbage detector probably carries the most risk, and that only because the potential for a performance penalty. Running the Zope 3 test suite did not show any clear change in performance, and a key subsystem in Zope (zope.interface) uses weakrefs extensively.