summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-05-17 08:14:39 (GMT)
committerGeorg Brandl <georg@python.org>2009-05-17 08:14:39 (GMT)
commit397ad860e9b2c909a9cef6d5a0d55e0211353b37 (patch)
treeae8707571508e88d2a356883b26d17ee830a8d91
parent8223c24d075357329970ee57a04a5d5fe09dbfde (diff)
downloadcpython-397ad860e9b2c909a9cef6d5a0d55e0211353b37.zip
cpython-397ad860e9b2c909a9cef6d5a0d55e0211353b37.tar.gz
cpython-397ad860e9b2c909a9cef6d5a0d55e0211353b37.tar.bz2
#4144: fix output of console sessions.
-rw-r--r--Doc/tutorial/errors.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index e78947c..41247ab 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -53,7 +53,7 @@ programs, however, and result in error messages as shown here::
>>> '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 @@ complicated example::
... print("executing finally clause")
...
>>> divide(2, 1)
- result is 2
+ result is 2.0
executing finally clause
>>> divide(2, 0)
division by zero!