diff options
author | Stanley <46876382+slateny@users.noreply.github.com> | 2022-10-07 18:12:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 18:12:08 (GMT) |
commit | 4a74e6ab3885e7906cc5e0b15addc7779bc76249 (patch) | |
tree | 06c9ae81702a6de2f898ebd608d485456fa3b47e /Doc/library/functions.rst | |
parent | 24a664589448d99a62386d5afa180cfb52733a7e (diff) | |
download | cpython-4a74e6ab3885e7906cc5e0b15addc7779bc76249.zip cpython-4a74e6ab3885e7906cc5e0b15addc7779bc76249.tar.gz cpython-4a74e6ab3885e7906cc5e0b15addc7779bc76249.tar.bz2 |
gh-64921: Clarify wording for open()'s newline arg (#96171)
Diffstat (limited to 'Doc/library/functions.rst')
-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 26ee302..93c9f4a 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 |