Commit 0c149618 authored by Fred Drake's avatar Fred Drake

Update to reflect the new string repr -- \n instead of \012. This is the

only documentation file that appears to be affected by the change!
parent bfedde83
...@@ -2622,7 +2622,7 @@ The value of x is 31.4, and y is 40000... ...@@ -2622,7 +2622,7 @@ The value of x is 31.4, and y is 40000...
... hello = 'hello, world\n' ... hello = 'hello, world\n'
>>> hellos = `hello` >>> hellos = `hello`
>>> print hellos >>> print hellos
'hello, world\012' 'hello, world\n'
>>> # The argument of reverse quotes may be a tuple: >>> # The argument of reverse quotes may be a tuple:
... `x, y, ('spam', 'eggs')` ... `x, y, ('spam', 'eggs')`
"(31.400000000000002, 40000, ('spam', 'eggs'))" "(31.400000000000002, 40000, ('spam', 'eggs'))"
...@@ -2783,7 +2783,7 @@ of the file has been reached, \code{f.read()} will return an empty ...@@ -2783,7 +2783,7 @@ of the file has been reached, \code{f.read()} will return an empty
string (\code {""}). string (\code {""}).
\begin{verbatim} \begin{verbatim}
>>> f.read() >>> f.read()
'This is the entire file.\012' 'This is the entire file.\n'
>>> f.read() >>> f.read()
'' ''
\end{verbatim} \end{verbatim}
...@@ -2798,9 +2798,9 @@ string containing only a single newline. ...@@ -2798,9 +2798,9 @@ string containing only a single newline.
\begin{verbatim} \begin{verbatim}
>>> f.readline() >>> f.readline()
'This is the first line of the file.\012' 'This is the first line of the file.\n'
>>> f.readline() >>> f.readline()
'Second line of the file\012' 'Second line of the file\n'
>>> f.readline() >>> f.readline()
'' ''
\end{verbatim} \end{verbatim}
...@@ -2814,7 +2814,7 @@ entire file in memory. Only complete lines will be returned. ...@@ -2814,7 +2814,7 @@ entire file in memory. Only complete lines will be returned.
\begin{verbatim} \begin{verbatim}
>>> f.readlines() >>> f.readlines()
['This is the first line of the file.\012', 'Second line of the file\012'] ['This is the first line of the file.\n', 'Second line of the file\n']
\end{verbatim} \end{verbatim}
\code{f.write(\var{string})} writes the contents of \var{string} to \code{f.write(\var{string})} writes the contents of \var{string} to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment