Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c14961

Browse files
committed
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!
1 parent bfedde8 commit 0c14961

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/tut/tut.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,7 +2622,7 @@ \section{Fancier Output Formatting \label{formatting}}
26222622
... hello = 'hello, world\n'
26232623
>>> hellos = `hello`
26242624
>>> print hellos
2625-
'hello, world\012'
2625+
'hello, world\n'
26262626
>>> # The argument of reverse quotes may be a tuple:
26272627
... `x, y, ('spam', 'eggs')`
26282628
"(31.400000000000002, 40000, ('spam', 'eggs'))"
@@ -2783,7 +2783,7 @@ \subsection{Methods of File Objects \label{fileMethods}}
27832783
string (\code {""}).
27842784
\begin{verbatim}
27852785
>>> f.read()
2786-
'This is the entire file.\012'
2786+
'This is the entire file.\n'
27872787
>>> f.read()
27882788
''
27892789
\end{verbatim}
@@ -2798,9 +2798,9 @@ \subsection{Methods of File Objects \label{fileMethods}}
27982798
27992799
\begin{verbatim}
28002800
>>> f.readline()
2801-
'This is the first line of the file.\012'
2801+
'This is the first line of the file.\n'
28022802
>>> f.readline()
2803-
'Second line of the file\012'
2803+
'Second line of the file\n'
28042804
>>> f.readline()
28052805
''
28062806
\end{verbatim}
@@ -2814,7 +2814,7 @@ \subsection{Methods of File Objects \label{fileMethods}}
28142814
28152815
\begin{verbatim}
28162816
>>> f.readlines()
2817-
['This is the first line of the file.\012', 'Second line of the file\012']
2817+
['This is the first line of the file.\n', 'Second line of the file\n']
28182818
\end{verbatim}
28192819
28202820
\code{f.write(\var{string})} writes the contents of \var{string} to

0 commit comments

Comments
 (0)