Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add PyDescr_IsData to the limited API
  • Loading branch information
Erlend E. Aasland
Erlend E. Aasland committed Feb 15, 2021
commit 7d71a1a5c26a8289d70e599b4dd2c6763340290a
3 changes: 3 additions & 0 deletions Include/descrobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ PyAPI_FUNC(PyObject *) PyDescr_NewGetSet(PyTypeObject *,
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) PyDescr_NewWrapper(PyTypeObject *,
struct wrapperbase *, void *);
#endif

#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
PyAPI_FUNC(int) PyDescr_IsData(PyObject *);
Comment thread
erlend-aasland marked this conversation as resolved.
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Convert :c:func:`PyDescr_IsData` macro to a function to hide implementation
details: The macro accessed :c:member:`PyTypeObject.tp_descr_set` directly.
Patch by Erlend E. Aasland.
The function is now a part of the limited C API. Patch by Erlend E. Aasland.