Skip to content

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

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

gh-56229: Document flush expectation for stdout and stderr replacements#153053
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

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Jul 5, 2026
@python-cla-bot

python-cla-bot Bot commented Jul 5, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33443320 | 📁 Comparing 5df1d7d against main (8e88bb5)

  🔍 Preview build  

1 file changed
± library/sys.html

@ahmojo ahmojo closed this Jul 5, 2026
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