diff options
author | Barry Warsaw <barry@python.org> | 2002-05-22 20:39:43 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-05-22 20:39:43 (GMT) |
commit | 177b4a065f121e70a43928b27bf845009944f070 (patch) | |
tree | 35a31fe338c4c59040fa044135e13de4185f9373 /Doc/lib/libstdtypes.tex | |
parent | 4be55b5cef746a3a8e07e7774c7310917f7381c3 (diff) | |
download | cpython-177b4a065f121e70a43928b27bf845009944f070.zip cpython-177b4a065f121e70a43928b27bf845009944f070.tar.gz cpython-177b4a065f121e70a43928b27bf845009944f070.tar.bz2 |
Jack's documentation for the U mode character on the file()
constructor, vetted by Barry.
Diffstat (limited to 'Doc/lib/libstdtypes.tex')
-rw-r--r-- | Doc/lib/libstdtypes.tex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index 143b05a..55e77a7 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -1248,6 +1248,18 @@ file object, of the form \samp{<\mbox{\ldots}>}. This is a read-only attribute and may not be present on all file-like objects. \end{memberdesc} +\begin{memberdesc}[file]{newlines} +If Python was built with the \code{--with-universal-newlines} option +(the default) this read-only attribute exists, and for files opened in +universal newline read mode it keeps track of the types of newlines +encountered while reading the file. The values it can take are +\code{'\e r'}, \code{'\e n'}, \code{'\e r\e n'}, \code{None} (unknown, +no newlines read yet) or a tuple containing all the newline +types seen, to indicate that multiple +newline conventions were encountered. For files not opened in universal +newline read mode the value of this attribute will be \code{None}. +\end{memberdesc} + \begin{memberdesc}[file]{softspace} Boolean that indicates whether a space character needs to be printed before another value when using the \keyword{print} statement. |