mirror of
https://github.com/python/cpython.git
synced 2026-04-03 18:40:59 +00:00
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
(cherry picked from commit 4a74e6ab38)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
This commit is contained in:
parent
69029bd2ca
commit
3dc8eb41bc
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