PEP 540: Correct `sys.output` to `sys.stdout` (#4122)

This commit is contained in:
Páll Haraldsson 2024-11-18 13:06:26 +00:00 committed by GitHub
parent d15e866a56
commit a1591857f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ The "Legacy Windows FS encoding" is enabled by the
``PYTHONLEGACYWINDOWSFSENCODING`` environment variable.
If stdin and/or stdout is redirected to a pipe, ``sys.stdin`` and/or
``sys.output`` uses ``mbcs`` encoding by default rather than UTF-8.
``sys.stdout`` uses ``mbcs`` encoding by default rather than UTF-8.
But in UTF-8 Mode, ``sys.stdin`` and ``sys.stdout`` always use the UTF-8
encoding.