From: Georg Brandl Date: Wed, 14 Apr 2010 19:16:38 +0000 (+0000) Subject: #8399: add note about Windows and O_BINARY. X-Git-Tag: v2.7b2~279 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a589c3ede31aa3ec0022f3fecdc89a854af2801;p=thirdparty%2FPython%2Fcpython.git #8399: add note about Windows and O_BINARY. --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 0c2cab74a1e4..e5e00d06c06b 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -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::