summaryrefslogtreecommitdiffstats
path: root/Include/setobject.h
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-05-30 07:26:47 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-05-30 07:26:47 (GMT)
commit691d80532b0a0204e92de35ecba1472d87af6e94 (patch)
tree25297599e68d9c19c3ea51d145c9a12a60ebc190 /Include/setobject.h
parentd70ad8a9d9c8212af6d83d2d7d08d21760829b17 (diff)
downloadcpython-691d80532b0a0204e92de35ecba1472d87af6e94.zip
cpython-691d80532b0a0204e92de35ecba1472d87af6e94.tar.gz
cpython-691d80532b0a0204e92de35ecba1472d87af6e94.tar.bz2
Make sets and deques weak referencable.
Diffstat (limited to 'Include/setobject.h')
-rw-r--r--Include/setobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/setobject.h b/Include/setobject.h
index 267e3b0..abbd847 100644
--- a/Include/setobject.h
+++ b/Include/setobject.h
@@ -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;