]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #1714700: clarify os.linesep vs. tfiles opened in text mode.
authorGeorg Brandl <georg@python.org>
Fri, 11 May 2007 11:04:26 +0000 (11:04 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 11 May 2007 11:04:26 +0000 (11:04 +0000)
 (backport)

Doc/lib/libos.tex

index 9783c1457f8067bf32ff2847dc52b6618b43b166..2454e57c1050b1ce1625aa1ceb5c2a8573b9a3ef 100644 (file)
@@ -2009,9 +2009,12 @@ Also available via \module{os.path}.
 
 \begin{datadesc}{linesep}
 The string used to separate (or, rather, terminate) lines on the
-current platform.  This may be a single character, such as \code{'\e
-n'} for \POSIX{} or \code{'\e r'} for Mac OS, or multiple characters,
-for example, \code{'\e r\e n'} for Windows.
+current platform.  This may be a single character, such as 
+\code{'\e n'} for \POSIX{} or \code{'\e r'} for Mac OS, or multiple 
+characters, for example, \code{'\e r\e n'} for Windows.
+Do not use \var{os.linesep} as a line terminator when writing files 
+opened in text mode (the default); use a single \code{'\e n'} instead, 
+on all platforms. 
 \end{datadesc}
 
 \begin{datadesc}{devnull}