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 davidhewitt
Recipients davidhewitt
Date 2021-12-20.22:26:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640039216.66.0.26119941091.issue46140@roundup.psfhosted.org>
In-reply-to
Content
The limited api methods `PyBuffer_GetPointer`, `PyBuffer_FromContiguous`, `PyBuffer_ToContiguous` and `PyMemoryView_FromBuffer` take buffer arguments as `Py_buffer *`.

They do not mutate the buffer info, so could simply take `const Py_buffer *`.

There is already precedent to take `const Py_buffer *` argument in `PyBuffer_IsContiguous`.

I'm going to submit a PR to fix.
History
Date User Action Args
2021-12-20 22:26:56davidhewittsetrecipients: + davidhewitt
2021-12-20 22:26:56davidhewittsetmessageid: <1640039216.66.0.26119941091.issue46140@roundup.psfhosted.org>
2021-12-20 22:26:56davidhewittlinkissue46140 messages
2021-12-20 22:26:56davidhewittcreate