summaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorda-woods <dw-git@d-woods.co.uk>2022-10-10 00:55:53 (GMT)
committerGitHub <noreply@github.com>2022-10-10 00:55:53 (GMT)
commitc459fedf7cfd5dadf72e088d789c7375b3a6e093 (patch)
tree9545909c733def41b8058ce1f249379d0cb2ecb3 /README.rst
parent281a3f18cc2afac0fa92c75e807775971e531711 (diff)
downloadcpython-c459fedf7cfd5dadf72e088d789c7375b3a6e093.zip
cpython-c459fedf7cfd5dadf72e088d789c7375b3a6e093.tar.gz
cpython-c459fedf7cfd5dadf72e088d789c7375b3a6e093.tar.bz2
Fix types in buffer/memoryview docs (#98118)
The definition of obj in the `Py_buffer` struct is as a PyObject* https://github.com/python/cpython/blob/ec091bd47e2f968b0d1631b9a8104283a7beeb1b/Include/pybuffer.h#L22 PyMemoryView_GET_BASE returns `.obj` - thus its return type should be a PyObject* (or at least a void*). It definitely doesn't return `Py_buffer`
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions