]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
A small change to the C API for weakly-referencable types: Such types
authorFred Drake <fdrake@acm.org>
Thu, 22 Mar 2001 18:26:47 +0000 (18:26 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 22 Mar 2001 18:26:47 +0000 (18:26 +0000)
commit4e262a963190b201578b0b5d972035b1637f6bd5
tree8c1e035b25075b1fb03f71d101260984d58a0e7c
parent82f1480d63a43c2007460e8f186aba8d0fc4ce38
A small change to the C API for weakly-referencable types:  Such types
must now initialize the extra field used by the weak-ref machinery to
NULL themselves, to avoid having to require PyObject_INIT() to check
if the type supports weak references and do it there.  This causes less
work to be done for all objects (the type object does not need to be
consulted to check for the Py_TPFLAGS_HAVE_WEAKREFS bit).
Include/objimpl.h
Misc/NEWS
Objects/classobject.c