mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional.
This commit is contained in:
parent
187b063005
commit
bf28d2dcad
4 changed files with 56 additions and 11 deletions
|
@ -538,13 +538,16 @@ conflict.
|
|||
.. envvar:: PYTHONIOENCODING
|
||||
|
||||
If this is set before running the interpreter, it overrides the encoding used
|
||||
for stdin/stdout/stderr, in the syntax ``encodingname:errorhandler``. The
|
||||
``:errorhandler`` part is optional and has the same meaning as in
|
||||
:func:`str.encode`.
|
||||
for stdin/stdout/stderr, in the syntax ``encodingname:errorhandler``. Both
|
||||
the ``encodingname`` and the ``:errorhandler`` parts are optional and have
|
||||
the same meaning as in :func:`str.encode`.
|
||||
|
||||
For stderr, the ``:errorhandler`` part is ignored; the handler will always be
|
||||
``'backslashreplace'``.
|
||||
|
||||
.. versionchanged:: 3.4
|
||||
The ``encodingname`` part is now optional.
|
||||
|
||||
|
||||
.. envvar:: PYTHONNOUSERSITE
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue