Issue #8268: Old-style classes (not just instances) now support weak

references.
This commit is contained in:
Antoine Pitrou 2010-03-31 21:32:15 +00:00
parent 26cc99da2a
commit a57df2cf1d
5 changed files with 29 additions and 2 deletions

View file

@ -18,6 +18,7 @@ typedef struct {
PyObject *cl_getattr;
PyObject *cl_setattr;
PyObject *cl_delattr;
PyObject *cl_weakreflist; /* List of weak references */
} PyClassObject;
typedef struct {