Issue #18818: The "encodingname" part of PYTHONIOENCODING is now optional.

This commit is contained in:
Serhiy Storchaka 2013-09-13 11:46:24 +03:00
parent 187b063005
commit bf28d2dcad
4 changed files with 56 additions and 11 deletions

View file

@ -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