GeezerVison is showing github.com — gh-155588: Add `PyMethod_New` to the stable ABI / limited API by NicolasT · Pull Request #155589 · python/cpython
Conversation
NicolasT
commented
Aug 11, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
See: capi-workgroup/decisions#108
I'm aware this change doesn't follow the "regular" style of header pairs in Include and Include/cpython, but it looks like Include/cpython/classobject.h was meant to be #includeable as a header directly, rather than only via Include/classobject.h indirectly, so I kept that for backwards compatibility.
As a result, PyMethod_New is declared twice, which is not an issue (divergence would be caught by the compiler), but slightly suboptimal. I didn't immediately see a way to make this work, though (except for having Include/cpython/classobject.h include Include/classobject.h, which seems undesirable).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
(This is a draft, awaiting a decision by the capi-workgroup)
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This aligns it more with other headers in `cpython/` and frees up
the guard for `Include/classobject.h`.
|
This PR is stale because it has been open for 90 days with no activity.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
encukou
Awaiting requested review from encukou
encukou will be requested when the pull request is marked ready for review
encukou is a code owner
AA-Turner
Awaiting requested review from AA-Turner
AA-Turner will be requested when the pull request is marked ready for review
AA-Turner is a code owner
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
stale
Stale PR or inactive for long period of time.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.