[Python-checkins] r72704 - python/branches/py3k/Doc/tutorial/errors.rst

georg.brandl python-checkins at python.org
Sun May 17 10:14:39 CEST 2009


Author: georg.brandl
Date: Sun May 17 10:14:39 2009
New Revision: 72704

Log:
#4144: fix output of console sessions.

Modified:
   python/branches/py3k/Doc/tutorial/errors.rst

Modified: python/branches/py3k/Doc/tutorial/errors.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/errors.rst	(original)
+++ python/branches/py3k/Doc/tutorial/errors.rst	Sun May 17 10:14:39 2009
@@ -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!


More information about the Python-checkins mailing list