diff Doc/tutorial/inputoutput.rst @ 44973:aaa5a794f887 legacy-trunk

Clarify "b" mode under Unix.
author Georg Brandl <georg@python.org>
date Sat, 26 Jan 2008 14:02:38 +0000
parents 3625234bf3d2
children 70f9a5db279c
line wrap: on
line diff
--- a/Doc/tutorial/inputoutput.rst	Sat Jan 26 13:50:51 2008 +0000
+++ b/Doc/tutorial/inputoutput.rst	Sat Jan 26 14:02:38 2008 +0000
@@ -200,7 +200,8 @@
 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: