Skip to content

gh-56612: Document sys.displayhook use - #163050

Open
MatheusHenriquePires wants to merge 1 commit into
python:mainfrom
MatheusHenriquePires:docs/gh-56612-displayhook
Open

MatheusHenriquePires wants to merge 1 commit into
python:mainfrom
MatheusHenriquePires:docs/gh-56612-displayhook

Conversation

@MatheusHenriquePires

@MatheusHenriquePires MatheusHenriquePires commented Dec 3, 2026 •

Copy link
Copy Markdown

Summary

  • Clarify that executing code compiled in single mode displays non-None expression results through sys.displayhook.
  • Document output routing in the code module, including the default streams for results, errors, and console messages.

Fixes #56612.

@python-cla-bot

python-cla-bot Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Dec 3, 2026
@read-the-docs-community

Copy link
Copy Markdown

📖 2 files modified


Preview · build overview · cpython-previews · built Dec. 3, 2026, 1:56 a.m. UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Mention sys.displayhook in code module docs and the compile builtin docs

1 participant