diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2012-05-28 20:35:09 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2012-05-28 20:35:09 (GMT) |
commit | 3e0a1eb8890c25b9d1f98bc2f4a4bbe2a0cdfdce (patch) | |
tree | 3b5e75991f7a5e61aea0f6282fec4d7c00c7cc12 /Include | |
parent | 1cfe7d9a84d5f4d8950f2b5a82be3bb25a725b62 (diff) | |
download | cpython-3e0a1eb8890c25b9d1f98bc2f4a4bbe2a0cdfdce.zip cpython-3e0a1eb8890c25b9d1f98bc2f4a4bbe2a0cdfdce.tar.gz cpython-3e0a1eb8890c25b9d1f98bc2f4a4bbe2a0cdfdce.tar.bz2 |
Issue #14930: Make memoryview objects weakrefable.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/memoryobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/memoryobject.h b/Include/memoryobject.h index 4ac6f65..c2e1194 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 |