diff options
author | Georg Brandl <georg@python.org> | 2008-09-13 17:41:16 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-09-13 17:41:16 +0000 |
commit | 9af9498c6e59aa9efe0370bcc476307b4c30c06c (patch) | |
tree | c8b5dee5200abd38af016b0e13fb93410e1b550b /Doc/tutorial/inputoutput.rst | |
parent | f2a2c796e37f888a254d7e2af8e4bc0dc0899530 (diff) | |
download | cpython-git-9af9498c6e59aa9efe0370bcc476307b4c30c06c.tar.gz |
Remove things specific to the old Macintosh, and spell "Mac OS X" consistently.
Diffstat (limited to 'Doc/tutorial/inputoutput.rst')
-rw-r--r-- | Doc/tutorial/inputoutput.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/tutorial/inputoutput.rst b/Doc/tutorial/inputoutput.rst index 559ce31738..7287e3e784 100644 --- a/Doc/tutorial/inputoutput.rst +++ b/Doc/tutorial/inputoutput.rst @@ -237,15 +237,15 @@ automatically added to the end. ``'r+'`` opens the file for both reading and writing. The *mode* argument is optional; ``'r'`` will be assumed if it's omitted. -On Windows and the Macintosh, ``'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 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. On Unix, it doesn't hurt to append a ``'b'`` to the mode, so -you can use it platform-independently for all binary files. +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 +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. 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: |