diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-07 18:21:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 18:21:44 (GMT) |
commit | 5054ae23ce9e5b6e43d9da4d9a4e3ed7fd9ab8e1 (patch) | |
tree | 2ac58a4c175781b609aabf8cd8599832a5b8cf71 /Doc | |
parent | da986c68c913e8902695704c748fb5b14d47f1f8 (diff) | |
download | cpython-5054ae23ce9e5b6e43d9da4d9a4e3ed7fd9ab8e1.zip cpython-5054ae23ce9e5b6e43d9da4d9a4e3ed7fd9ab8e1.tar.gz cpython-5054ae23ce9e5b6e43d9da4d9a4e3ed7fd9ab8e1.tar.bz2 |
gh-64921: Clarify wording for open()'s newline arg (GH-96171)
(cherry picked from commit 4a74e6ab3885e7906cc5e0b15addc7779bc76249)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index d84977f..86b88c0 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1244,8 +1244,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 |