commit | 9676b22cd70ba83b8f03c5d2191892236d9dbd0d | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Aug 17 20:32:36 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Aug 17 20:32:36 2001 +0000 |
tree | db65cc51c7685ef3cdcb74f97f2d52366bc29588 | |
parent | dbfe5e85076aaced56313fbc61642426619e4913 [diff] |
Weak reference support, closing SF bug #451773. Classes that don't use __slots__ have a __weakref__ member added in the same way as __dict__ is added (i.e. only if the base didn't already have one). Classes using __slots__ can enable weak referenceability by adding '__weakref__' to the __slots__ list. Renamed the __weaklistoffset__ class member to __weakrefoffset__ -- it's not always a list, it seems. (Is tp_weaklistoffset a historical misnomer, or do I misunderstand this?)