mirror of https://github.com/python/cpython
gh-64921: Clarify wording for open()'s newline arg (#96171)
This commit is contained in:
parent
24a6645894
commit
4a74e6ab38
|
@ -1254,8 +1254,8 @@ are always available. They are listed here in alphabetical order.
|
||||||
|
|
||||||
.. _open-newline-parameter:
|
.. _open-newline-parameter:
|
||||||
|
|
||||||
*newline* controls how :term:`universal newlines` mode works (it only
|
*newline* determines how to parse newline characters from the stream.
|
||||||
applies to text mode). It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and
|
It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and
|
||||||
``'\r\n'``. It works as follows:
|
``'\r\n'``. It works as follows:
|
||||||
|
|
||||||
* When reading input from the stream, if *newline* is ``None``, universal
|
* When reading input from the stream, if *newline* is ``None``, universal
|
||||||
|
|
Loading…
Reference in New Issue