gh-114685: Check flags in PyObject_GetBuffer() (GH-114707)
PyObject_GetBuffer() now raises a SystemError if called with PyBUF_READ or PyBUF_WRITE as flags. These flags should only be used with the PyMemoryView_* C API.
S
Serhiy Storchaka committed
b7688ef71eddcaf14f71b1c22ff2f164f34b2c74
Parent: 7a93db4
Committed by GitHub <noreply@github.com>
on 1/31/2024, 11:11:35 AM