]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#8399: add note about Windows and O_BINARY.
authorGeorg Brandl <georg@python.org>
Wed, 14 Apr 2010 19:16:38 +0000 (19:16 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 14 Apr 2010 19:16:38 +0000 (19:16 +0000)
Doc/library/os.rst

index 0c2cab74a1e40b9268f1041cf5c7c36ef8a19442..e5e00d06c06bdc4a8edb3ca18afa0b5ceb67c666 100644 (file)
@@ -662,7 +662,8 @@ as internal buffering of data.
 
    For a description of the flag and mode values, see the C run-time documentation;
    flag constants (like :const:`O_RDONLY` and :const:`O_WRONLY`) are defined in
-   this module too (see :ref:`open-constants`).
+   this module too (see :ref:`open-constants`).  In particular, on Windows adding
+   :const:`O_BINARY` is needed to open files in binary mode.
 
    .. note::