This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nanjekyejoannah
Recipients nanjekyejoannah
Date 2020-03-03.15:18:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583248717.8.0.114073017278.issue39836@roundup.psfhosted.org>
In-reply-to
Content
We have a memory-view object represented with the following structure:

typedef struct {
    PyObject_VAR_HEAD
    _PyManagedBufferObject *mbuf; /* managed buffer */
    Py_hash_t hash;               /* hash value for read-only views */
    int flags;                    /* state flags */
    Py_ssize_t exports;           /* number of buffer re-exports */
    Py_buffer view;               /* private copy of the exporter's view */
    PyObject *weakreflist;
    Py_ssize_t ob_array[1];       /* shape, strides, suboffsets */
} PyMemoryViewObject;

It would be good to have the implementation for PyObject_GetMemoryView which returns a memory-view object as was originally intended in PEP 3118 i.e :

PyObject *PyObject_GetMemoryView(PyObject *obj)
History
Date User Action Args
2020-03-03 15:18:37nanjekyejoannahsetrecipients: + nanjekyejoannah
2020-03-03 15:18:37nanjekyejoannahsetmessageid: <1583248717.8.0.114073017278.issue39836@roundup.psfhosted.org>
2020-03-03 15:18:37nanjekyejoannahlinkissue39836 messages
2020-03-03 15:18:37nanjekyejoannahcreate