Commit cbaeeafb authored by Georg Brandl's avatar Georg Brandl

#4144: fix output of console sessions.

parent 2c467d66
......@@ -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!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment