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

Skip to content

Commit 860106a

Browse files
committed
Update the display of some floating point values at the interactive prompt
to reflect current behavior. This closes SourceForge bug #117305. Made a reference to the library reference a hyperlink. Fixed some minor markup nits.
1 parent 8413b47 commit 860106a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/tut/tut.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,8 +1046,8 @@ \section{\keyword{if} Statements \label{if}}
10461046
\keyword{if} \ldots\ \keyword{elif} \ldots\ \keyword{elif} \ldots\ sequence
10471047
% Weird spacings happen here if the wrapping of the source text
10481048
% gets changed in the wrong way.
1049-
is a substitute for the \emph{switch} or
1050-
\emph{case} statements found in other languages.
1049+
is a substitute for the \keyword{switch} or
1050+
\keyword{case} statements found in other languages.
10511051

10521052

10531053
\section{\keyword{for} Statements \label{for}}
@@ -2600,15 +2600,15 @@ \section{Fancier Output Formatting \label{formatting}}
26002600
... p = [x, y]
26012601
>>> ps = repr(p)
26022602
>>> ps
2603-
'[31.4, 40000]'
2603+
'[31.400000000000002, 40000]'
26042604
>>> # Converting a string adds string quotes and backslashes:
26052605
... hello = 'hello, world\n'
26062606
>>> hellos = `hello`
26072607
>>> print hellos
26082608
'hello, world\012'
26092609
>>> # The argument of reverse quotes may be a tuple:
26102610
... `x, y, ('spam', 'eggs')`
2611-
"(31.4, 40000, ('spam', 'eggs'))"
2611+
"(31.400000000000002, 40000, ('spam', 'eggs'))"
26122612
\end{verbatim}
26132613
26142614
Here are two ways to write a table of squares and cubes:
@@ -2967,8 +2967,8 @@ \section{Exceptions \label{exceptions}}
29672967
In general it contains a stack backtrace listing source lines; however,
29682968
it will not display lines read from standard input.
29692969
2970-
The \emph{Python Library Reference} lists the built-in exceptions and
2971-
their meanings.
2970+
The \citetitle[../lib/module-exceptions.html]{Python Library
2971+
Reference} lists the built-in exceptions and their meanings.
29722972
29732973
29742974
\section{Handling Exceptions \label{handling}}

0 commit comments

Comments
 (0)