8000 bpo-40170: Convert PyDescr_IsData macro to C function by erlend-aasland · Pull Request #24535 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-40170: Convert PyDescr_IsData macro to C function #24535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 16, 2021
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
Revert "Add PyDescr_IsData to the limited API"
This reverts commit 7d71a1a.
  • Loading branch information
Erlend E. Aasland committed Feb 15, 2021
commit 00b89fd91b0b46ed218f671d99411b9872c448b6
3 changes: 0 additions & 3 deletions Include/descrobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ 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 *);
#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.
The function is now a part of the limited C API. Patch by Erlend E. Aasland.
Patch by Erlend E. Aasland.
0