summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-26 14:02:38 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-26 14:02:38 (GMT)
commit2a7d991c6c16145d657e4858a4ef3b9147b183a0 (patch)
treeb0a2bad21a62b605968b0f409bd68ef654dc482e /Doc/tutorial
parent0c3f1680b38ca1c9119442f523173e3729f3b70f (diff)
downloadcpython-2a7d991c6c16145d657e4858a4ef3b9147b183a0.zip
cpython-2a7d991c6c16145d657e4858a4ef3b9147b183a0.tar.gz
cpython-2a7d991c6c16145d657e4858a4ef3b9147b183a0.tar.bz2
Clarify "b" mode under Unix.
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/inputoutput.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst
index d3b912a..f9eec97 100644
--- a/Doc/tutorial/inputoutput.rst
+++ b/Doc/tutorial/inputoutput.rst
@@ -200,7 +200,8 @@ 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 very careful to use binary mode when reading and writing
-such files.
+such files. On Unix, it doesn't hurt to append a ``'b'`` to the mode, so
+you can use it platform-independently for all binary files.
.. _tut-filemethods: