[Python-checkins] gh-64921: Clarify wording for open()'s newline arg (GH-96171)

miss-islington webhook-mailer at python.org
Fri Oct 7 14:21:07 EDT 2022


https://github.com/python/cpython/commit/3dc8eb41bcd2eda2704037886172a35e0839b892
commit: 3dc8eb41bcd2eda2704037886172a35e0839b892
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-07T11:21:01-07:00
summary:

gh-64921: Clarify wording for open()'s newline arg (GH-96171)

(cherry picked from commit 4a74e6ab3885e7906cc5e0b15addc7779bc76249)

Co-authored-by: Stanley <46876382+slateny at users.noreply.github.com>

files:
M Doc/library/functions.rst

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 26ee302d2eab..93c9f4ad2bc2 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -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



More information about the Python-checkins mailing list