mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #14930: Make memoryview objects weakrefable.
This commit is contained in:
parent
1cfe7d9a84
commit
3e0a1eb889
5 changed files with 23 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue