bpo-40170: Convert PyObject_CheckBuffer() macro to a function (GH-19376) · python/cpython@ef5c615 · GitHub
Skip to content

Commit ef5c615

Browse files
authored
bpo-40170: Convert PyObject_CheckBuffer() macro to a function (GH-19376)
Convert PyObject_CheckBuffer() macro to a function to hide implementation details: the macro accessed directly the PyTypeObject.tp_as_buffer member.
1 parent 9205520 commit ef5c615

3 files changed

Lines changed: 14 additions & 3 deletions

File tree

Include/cpython/abstract.h

Lines changed: 1 addition & 3 deletions
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Convert :c:func:`PyObject_CheckBuffer` macro to a function to hide
2+
implementation details: the macro accessed directly the
3+
:c:member:`PyTypeObject.tp_as_buffer` member.

Objects/abstract.c

Lines changed: 10 additions & 0 deletions

0 commit comments

Comments
 (0)