Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchakaserhiy-storchaka commented Jan 29, 2024

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.

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.
Copy link
Member

@sobolevnsobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 👍

@serhiy-storchakaserhiy-storchaka merged commit b7688ef into python:mainJan 31, 2024
@serhiy-storchakaserhiy-storchaka deleted the buffer-invalid-flags branch January 31, 2024 11:11
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
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.
hroncok added a commit to hroncok/pycairo that referenced this pull request May 29, 2024
 Since Python 3.13, the flag is no longer allowed. See python/cpython#114707Fixespygobject#365
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@serhiy-storchaka@sobolevn