FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-47164: Argument Clinic uses _PyCFunction_CAST() by vstinner · Pull Request #32210 · python/cpython · GitHub

Repository navigation

bpo-47164: Argument Clinic uses _PyCFunction_CAST() - #32210

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:clinic_cfunc_cast
May 3, 2022
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:clinic_cfunc_cast

Conversation

vstinner commented Mar 31, 2022 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Replace "(PyCFunction)(void(*)(void))func" cast with
_PyCFunction_CAST(func).

https://bugs.python.org/issue47164

Copy link
Copy Markdown
Member

What to do with yet unmerged PRs that add Argument Clinic stuff (like #32010)? They'll introduce more (PyCFunction)(void(*)(void)).

Copy link
Copy Markdown
Member Author

You should ignore this draft PR for now. I'm still thinking about it :-) If there will be a conflict, I will simply regenerate this PR (rerun make clinic).

Replace "(PyCFunction)(void(*)(void))func" cast with
_PyCFunction_CAST(func).
vstinner marked this pull request as ready for review May 3, 2022 17:53

vstinner commented May 3, 2022

Copy link
Copy Markdown
Member Author

I rebased my PR.

vstinner commented May 3, 2022

Copy link
Copy Markdown
Member Author

Example of change:

-    {"test_object_converter", (PyCFunction)(void(*)(void))test_object_converter, METH_FASTCALL, test_object_converter__doc__},
+    {"test_object_converter", _PyCFunction_CAST(test_object_converter), METH_FASTCALL, test_object_converter__doc__},

vstinner merged commit b270b82 into python:main May 3, 2022
vstinner deleted the clinic_cfunc_cast branch May 3, 2022 18:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL