Menu

#12 Update PyObject Buffer Protocol

None
closed-fixed
None
5
2020-12-30
2020-12-23
No

This patch is against r536. For reading image buffers PyObject_asReadBuffer is deprecated in python 3
see https://docs.python.org/3/c-api/objbuffer.html
warning: ‘int PyObject_AsReadBuffer(PyObject, const void, Py_ssize_t)’ is deprecated [-Wdeprecated-declarations]
This patch uses the newer PyObject_GetBuffer
see https://docs.python.org/3/c-api/buffer.html

I have only done very minimal testing of this patch. The pertinent programs in test dir seem to be ok but this patch needs to be verified/tested.

1 Attachments

Discussion

  • Andreas Held

    Andreas Held - 2020-12-30
    • status: open --> closed-fixed
    • assigned_to: Andreas Held
    • Group: -->
     
  • Andreas Held

    Andreas Held - 2020-12-30

    Applied in r540.

     

Log in to post a comment.