bpo-40170: Convert PyObject_CheckBuffer() macro to a function by vstinner · Pull Request #19376 · python/cpython
-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Merged
Conversation
Member
Convert PyObject_CheckBuffer() macro to a function to hide
implementation details: the macro accessed directly
PyTypeObject.tp_as_buffer field.
the-knights-who-say-ni
added
the
CLA signed
label
bedevere-bot
added
the
awaiting core review
label
vstinner
commented
Apr 5, 2020
vstinner commented
Member Author
PyObject_CheckBuffer() is used for example by:
- PyBytes_FromObject()
- PyMemoryView_FromObject()
- PyUnicode_FSDecoder()
- PyObject_CopyData()
- w_complex_object() of marshal.c
Convert PyObject_CheckBuffer() macro to a function to hide implementation details: the macro accessed directly the PyTypeObject.tp_as_buffer member.
vstinner
merged commit
ef5c615
into
python:master
bedevere-bot
removed
the
awaiting core review
label
vstinner
deleted the
check_buffer
branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment