mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
parent
27bbcfb8ff
commit
99d439afcf
1 changed files with 2 additions and 1 deletions
|
@ -290,7 +290,8 @@ default values. The arguments that are most commonly needed are:
|
||||||
|
|
||||||
If *universal_newlines* is ``True``, the file objects *stdin*, *stdout*
|
If *universal_newlines* is ``True``, the file objects *stdin*, *stdout*
|
||||||
and *stderr* will be opened as text streams in :term:`universal newlines`
|
and *stderr* will be opened as text streams in :term:`universal newlines`
|
||||||
mode using the encoding returned by :func:`locale.getpreferredencoding`.
|
mode using the encoding returned by
|
||||||
|
:func:`locale.getpreferredencoding(False) <locale.getpreferredencoding>`.
|
||||||
For *stdin*, line ending characters ``'\n'`` in the input will be converted
|
For *stdin*, line ending characters ``'\n'`` in the input will be converted
|
||||||
to the default line separator :data:`os.linesep`. For *stdout* and
|
to the default line separator :data:`os.linesep`. For *stdout* and
|
||||||
*stderr*, all line endings in the output will be converted to ``'\n'``.
|
*stderr*, all line endings in the output will be converted to ``'\n'``.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue