summaryrefslogtreecommitdiff
path: root/Include/memoryobject.h
diff options
context:
space:
mode:
authorRichard Oudkerk <shibturn@gmail.com>2012-05-28 21:35:09 +0100
committerRichard Oudkerk <shibturn@gmail.com>2012-05-28 21:35:09 +0100
commit665d89dc9dabe7d4e63f4cf949c574b37e91ddae (patch)
tree785d12f7c3a1bf6c7b851a675373db4af9d727d3 /Include/memoryobject.h
parentcb87760ded4a17364303295dc08aa060991b9221 (diff)
downloadcpython-665d89dc9dabe7d4e63f4cf949c574b37e91ddae.tar.gz
Issue #14930: Make memoryview objects weakrefable.
Diffstat (limited to 'Include/memoryobject.h')
-rw-r--r--Include/memoryobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/memoryobject.h b/Include/memoryobject.h
index 4ac6f6525c..c2e1194446 100644
--- a/Include/memoryobject.h
+++ b/Include/memoryobject.h
@@ -63,6 +63,7 @@ typedef struct {
Py_ssize_t exports; /* number of buffer re-exports */
Py_buffer view; /* private copy of the exporter's view */
char format[_Py_MEMORYVIEW_MAX_FORMAT]; /* used for casting */
+ PyObject *weakreflist;
Py_ssize_t ob_array[1]; /* shape, strides, suboffsets */
} PyMemoryViewObject;
#endif