GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@NicolasT NicolasT commented Aug 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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).

  • Issue: Add PyMethod_New to the stable ABI / limited API #155588

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bedevere-app bedevere-app Bot mentioned this pull request Aug 11, 2026
Add PyMethod_New to the stable ABI / limited API #155588
Open
@NicolasT

NicolasT commented Aug 11, 2026

Copy link
Copy Markdown
Contributor Author

(This is a draft, awaiting a decision by the capi-workgroup)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@NicolasT
NicolasT force-pushed the gh-155588-add-pymethod-new-to-stable-abi branch from 0b94056 to fac62e3 Compare August 11, 2026 19:52
@read-the-docs-community

read-the-docs-community Bot commented Aug 11, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34020492 | 📁 Comparing f76e76c against main (3444ef9)

  🔍 Preview build  

4 files changed
± c-api/method.html
± c-api/stable.html
± whatsnew/3.16.html
± whatsnew/changelog.html
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@NicolasT
NicolasT force-pushed the gh-155588-add-pymethod-new-to-stable-abi branch from fac62e3 to f76e76c Compare August 11, 2026 20:14
NicolasT added 2 commits August 11, 2026 21:45
@NicolasT
Include: change guard of cpython/classobject.h
f879f0d
This aligns it more with other headers in `cpython/` and frees up
the guard for `Include/classobject.h`.
@NicolasT
pythongh-155588: Add PyMethod_New to the stable ABI / limited API
f76e76c
See: capi-workgroup/decisions#108
@github-actions

github-actions Bot commented Nov 12, 2026

Copy link
Copy Markdown

This PR is stale because it has been open for 90 days with no activity.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@encukou 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 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.

Projects

None yet

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.

1 participant

@NicolasT
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.