Skip to content

gh-56229: Document flush expectation for stdout and stderr replacements#153150

Open
ahmojo wants to merge 1 commit into
python:mainfrom
ahmojo:docs/56229-stdout-stderr-flush
Open

gh-56229: Document flush expectation for stdout and stderr replacements#153150
ahmojo wants to merge 1 commit into
python:mainfrom
ahmojo:docs/56229-stdout-stderr-flush

Conversation

@ahmojo

@ahmojo ahmojo commented Jul 5, 2026

Copy link
Copy Markdown

Summary

Document that replacement sys.stdout and sys.stderr objects should provide flush() because these streams are flushed during interpreter shutdown.

What changed

  • Added one focused sentence to Doc/library/sys.rst.
  • No behavior changes.
  • No new dependencies.

Tests

  • git diff --check
  • Doc\make.bat check
  • Full Sphinx HTML build with --fail-on-warning

Closes #56229

@read-the-docs-community

read-the-docs-community Bot commented Jul 5, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33451108 | 📁 Comparing 3c4b232 against main (93b1a88)

  🔍 Preview build  

1 file changed
± library/sys.html

@ahmojo ahmojo force-pushed the docs/56229-stdout-stderr-flush branch from 5df1d7d to 3c4b232 Compare July 5, 2026 23:22
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.

[doc] Attribute error with flush on stdout,stderr

1 participant