]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Weak reference support, closing SF bug #451773.
authorGuido van Rossum <guido@python.org>
Fri, 17 Aug 2001 20:32:36 +0000 (20:32 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Aug 2001 20:32:36 +0000 (20:32 +0000)
commit9676b22cd70ba83b8f03c5d2191892236d9dbd0d
treedb65cc51c7685ef3cdcb74f97f2d52366bc29588
parentdbfe5e85076aaced56313fbc61642426619e4913
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?)
Objects/typeobject.c