diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-10 01:02:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-10 01:02:49 (GMT) |
commit | 03ea515f33b3073d2c680b5a7786ea603076eb6d (patch) | |
tree | ef3b3ea88d9e69ab1902771848de817fbc46a0b4 /Python/getopt.c | |
parent | ccb56804fd4a0b6d6d21325c2dd11ef16077eca6 (diff) | |
download | cpython-03ea515f33b3073d2c680b5a7786ea603076eb6d.zip cpython-03ea515f33b3073d2c680b5a7786ea603076eb6d.tar.gz cpython-03ea515f33b3073d2c680b5a7786ea603076eb6d.tar.bz2 |
Fix types in buffer/memoryview docs (GH-98118)
The definition of obj in the `Py_buffer` struct is as a PyObject*
https://github.com/python/cpython/blob/ec091bd47e2f968b0d1631b9a8104283a7beeb1b/Include/pybuffer.hGH-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`
(cherry picked from commit c459fedf7cfd5dadf72e088d789c7375b3a6e093)
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Diffstat (limited to 'Python/getopt.c')
0 files changed, 0 insertions, 0 deletions