mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Make sets and deques weak referencable.
This commit is contained in:
parent
d70ad8a9d9
commit
691d80532b
5 changed files with 32 additions and 6 deletions
|
@ -15,6 +15,7 @@ typedef struct {
|
|||
PyObject_HEAD
|
||||
PyObject *data;
|
||||
long hash; /* only used by frozenset objects */
|
||||
PyObject *weakreflist; /* List of weak references */
|
||||
} PySetObject;
|
||||
|
||||
PyAPI_DATA(PyTypeObject) PySet_Type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue