• Fred Drake's avatar
    A small change to the C API for weakly-referencable types: Such types · 4e262a96
    Fred Drake yazdı
    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).
    4e262a96
objimpl.h 10.7 KB