mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
gh-64921: Clarify wording for open()'s newline arg (#96171)
This commit is contained in:
parent
24a6645894
commit
4a74e6ab38
1 changed files with 2 additions and 2 deletions
|
|
@ -1254,8 +1254,8 @@ are always available. They are listed here in alphabetical order.
|
|||
|
||||
.. _open-newline-parameter:
|
||||
|
||||
*newline* controls how :term:`universal newlines` mode works (it only
|
||||
applies to text mode). It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and
|
||||
*newline* determines how to parse newline characters from the stream.
|
||||
It can be ``None``, ``''``, ``'\n'``, ``'\r'``, and
|
||||
``'\r\n'``. It works as follows:
|
||||
|
||||
* When reading input from the stream, if *newline* is ``None``, universal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue