Skip to content

gh-152105: Remove docs snippet that uses internal C API - #155122

Merged
encukou merged 2 commits into
python:mainfrom
encukou:remove-PyUnstable_ExecutableKinds-note
Aug 5, 2026
Merged

gh-152105: Remove docs snippet that uses internal C API#155122
encukou merged 2 commits into
python:mainfrom
encukou:remove-PyUnstable_ExecutableKinds-note

Conversation

@encukou

@encukouencukou commented Aug 3, 2026

Copy link
Copy Markdown
Member

Follow-up to GH-143490 (see this comment).

_PyInterpreterFrame.f_executable and PyStackRef_AsPyObjectBorrow are undocumented and only available in the internal API. Docs should not suggest using them, even if PyUnstable_ExecutableKinds is unusable without them.

This is a backportable docs PR; for 3.16 let's remove the API unless someone explains things. (I'll send the PR after this is merged.)

Follow-up to pythonGH-143490.
`_PyInterpreterFrame.f_executable` and `PyStackRef_AsPyObjectBorrow`
are undocumented and only available in the internal API.
Docs should not suggest using them, even if `PyUnstable_ExecutableKinds`
is unusable without them.
@read-the-docs-community

read-the-docs-communityBot commented Aug 3, 2026

Copy link
Copy Markdown

Comment threadDoc/c-api/frame.rst Outdated
Co-authored-by: Stan Ulbrych <stan@python.org>
@encukou
encukou merged commit c5d4946 into python:mainAug 5, 2026
29 checks passed
@github-project-automationgithub-project-automationBot moved this from Todo to Done in Docs PRsAug 5, 2026
@encukou
encukou deleted the remove-PyUnstable_ExecutableKinds-note branch August 5, 2026 12:50
@encukouencukou added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Aug 5, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@bedevere-app

Copy link
Copy Markdown

GH-155240 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.13 bugs and security fixes label Aug 5, 2026
@bedevere-app

Copy link
Copy Markdown

GH-155241 is a backport of this pull request to the 3.15 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Aug 5, 2026
@bedevere-app

Copy link
Copy Markdown

GH-155242 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appBot removed the needs backport to 3.14 bugs and security fixes label Aug 5, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docsDocumentation in the Doc dirskip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants

@encukou@ZeroIntensity@StanFromIreland