Message408976
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. |
|
Date |
User |
Action |
Args |
2021-12-20 22:26:56 | davidhewitt | set | recipients:
+ davidhewitt |
2021-12-20 22:26:56 | davidhewitt | set | messageid: <1640039216.66.0.26119941091.issue46140@roundup.psfhosted.org> |
2021-12-20 22:26:56 | davidhewitt | link | issue46140 messages |
2021-12-20 22:26:56 | davidhewitt | create | |
|