From 3e0a1eb8890c25b9d1f98bc2f4a4bbe2a0cdfdce Mon Sep 17 00:00:00 2001 From: Richard Oudkerk Date: Mon, 28 May 2012 21:35:09 +0100 Subject: Issue #14930: Make memoryview objects weakrefable. --- Include/memoryobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/memoryobject.h') 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 -- cgit v1.2.1