diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2009-09-13 16:13:36 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2009-09-13 16:13:36 (GMT) |
commit | 60931a5a580321b4b225bec9e133ed3998eb7d1a (patch) | |
tree | df6b844f73177b70e67f6caae079913eef498022 | |
parent | 924eab64a36735bbec080f5f0dc02bb3a773284d (diff) | |
download | cpython-60931a5a580321b4b225bec9e133ed3998eb7d1a.zip cpython-60931a5a580321b4b225bec9e133ed3998eb7d1a.tar.gz cpython-60931a5a580321b4b225bec9e133ed3998eb7d1a.tar.bz2 |
Change to tutorial wording for reading text / binary files on Windows. Issue #6301.
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 9efbca5..0259749 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -248,8 +248,8 @@ writing. The *mode* argument is optional; ``'r'`` will be assumed if it's omitted. On Windows, ``'b'`` appended to the mode opens the file in binary mode, so there -are also modes like ``'rb'``, ``'wb'``, and ``'r+b'``. Windows makes a -distinction between text and binary files; the end-of-line characters in text +are also modes like ``'rb'``, ``'wb'``, and ``'r+b'``. Python on Windows makes +a distinction between text and binary files; the end-of-line characters in text files are automatically altered slightly when data is read or written. This behind-the-scenes modification to file data is fine for ASCII text files, but it'll corrupt binary data like that in :file:`JPEG` or :file:`EXE` files. Be |