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

@encukou encukou 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-community Bot commented Aug 3, 2026

Copy link
Copy Markdown

Comment thread Doc/c-api/frame.rst Outdated
Co-authored-by: Stan Ulbrych <stan@python.org>
@encukou
encukou merged commit c5d4946 into python:main Aug 5, 2026
29 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Aug 5, 2026
@encukou
encukou deleted the remove-PyUnstable_ExecutableKinds-note branch August 5, 2026 12:50
@encukou encukou 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

bedevere-app Bot commented Aug 5, 2026

Copy link
Copy Markdown

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

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

bedevere-app Bot commented Aug 5, 2026

Copy link
Copy Markdown

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

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

bedevere-app Bot commented Aug 5, 2026

Copy link
Copy Markdown

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

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

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants