mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Issue #8268: Old-style classes (not just instances) now support weak
references.
This commit is contained in:
parent
26cc99da2a
commit
a57df2cf1d
5 changed files with 29 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue