diff Doc/tutorial/errors.rst @ 54132:d2732ea99ba0

#4144: fix output of console sessions.
author Georg Brandl <georg@python.org>
date Sun, 17 May 2009 08:14:39 +0000
parents 93cf3a6ead63
children fa91270b6087
line wrap: on
line diff
--- a/Doc/tutorial/errors.rst	Sun May 17 04:21:53 2009 +0000
+++ b/Doc/tutorial/errors.rst	Sun May 17 08:14:39 2009 +0000
@@ -53,7 +53,7 @@
    >>> '2' + 2
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
-   TypeError: coercing to Unicode: need string or buffer, int found
+   TypeError: Can't convert 'int' object to str implicitly
 
 The last line of the error message indicates what happened. Exceptions come in
 different types, and the type is printed as part of the message: the types in
@@ -353,7 +353,7 @@
    ...         print("executing finally clause")
    ...
    >>> divide(2, 1)
-   result is 2
+   result is 2.0
    executing finally clause
    >>> divide(2, 0)
    division by zero!