Skip to content

Commit 7d71a1a

Browse files
author
Erlend E. Aasland
committed
Add PyDescr_IsData to the limited API
1 parent c64feb5 commit 7d71a1a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Include/descrobject.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *,
9393
#ifndef Py_LIMITED_API
9494
PyAPI_FUNC(PyObject *) PyDescr_NewWrapper(PyTypeObject *,
9595
struct wrapperbase *, void *);
96+
#endif
97+
98+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
9699
PyAPI_FUNC(int) PyDescr_IsData(PyObject *);
97100
#endif
98101

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Convert :c:func:`PyDescr_IsData` macro to a function to hide implementation
22
details: The macro accessed :c:member:`PyTypeObject.tp_descr_set` directly.
3-
Patch by Erlend E. Aasland.
3+
The function is now a part of the limited C API. Patch by Erlend E. Aasland.

0 commit comments

Comments
 (0)