]> granicus.if.org Git - python/commitdiff
Update the display of some floating point values at the interactive prompt
authorFred Drake <fdrake@acm.org>
Fri, 20 Oct 2000 03:03:18 +0000 (03:03 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 20 Oct 2000 03:03:18 +0000 (03:03 +0000)
to reflect current behavior.
This closes SourceForge bug #117305.

Made a reference to the library reference a hyperlink.

Fixed some minor markup nits.

Doc/tut/tut.tex

index 14261aa9ce2a7298e389f5a7d4c7d29537946ef8..d79eddb92bb16d94de1bf0bc8132a73753dd721e 100644 (file)
@@ -1046,8 +1046,8 @@ short for `else if', and is useful to avoid excessive indentation.  An
 \keyword{if} \ldots\ \keyword{elif} \ldots\ \keyword{elif} \ldots\ sequence
 %    Weird spacings happen here if the wrapping of the source text
 %    gets changed in the wrong way.
-is a substitute for the  \emph{switch} or
-\emph{case} statements found in other languages.
+is a substitute for the \keyword{switch} or
+\keyword{case} statements found in other languages.
 
 
 \section{\keyword{for} Statements \label{for}}
@@ -2600,7 +2600,7 @@ The value of x is 31.4, and y is 40000...
 ... p = [x, y]
 >>> ps = repr(p)
 >>> ps
-'[31.4, 40000]'
+'[31.400000000000002, 40000]'
 >>> # Converting a string adds string quotes and backslashes:
 ... hello = 'hello, world\n'
 >>> hellos = `hello`
@@ -2608,7 +2608,7 @@ The value of x is 31.4, and y is 40000...
 'hello, world\012'
 >>> # The argument of reverse quotes may be a tuple:
 ... `x, y, ('spam', 'eggs')`
-"(31.4, 40000, ('spam', 'eggs'))"
+"(31.400000000000002, 40000, ('spam', 'eggs'))"
 \end{verbatim}
 
 Here are two ways to write a table of squares and cubes:
@@ -2967,8 +2967,8 @@ exception happened, in the form of a stack backtrace.
 In general it contains a stack backtrace listing source lines; however,
 it will not display lines read from standard input.
 
-The \emph{Python Library Reference} lists the built-in exceptions and
-their meanings.
+The \citetitle[../lib/module-exceptions.html]{Python Library
+Reference} lists the built-in exceptions and their meanings.
 
 
 \section{Handling Exceptions \label{handling}}