Skip to content

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

Open
encukou wants to merge 2 commits into
python:mainfrom
encukou:remove-PyUnstable_ExecutableKinds-note
Open

gh-152105: Remove docs snippet that uses internal C API#155122
encukou wants to merge 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants