diff Doc/tutorial/errors.rst @ 46336:56e49952d1a4

Bug #2565: The repr() of type objects now calls them 'class', not 'type' - whether they are builtin types or not.
author Martin v. Löwis <martin@v.loewis.de>
date Mon, 07 Apr 2008 05:43:42 +0000
parents c8fca9b5cd3c
children 03b1233bf5fe
line wrap: on
line diff
--- a/Doc/tutorial/errors.rst	Mon Apr 07 03:22:07 2008 +0000
+++ b/Doc/tutorial/errors.rst	Mon Apr 07 05:43:42 2008 +0000
@@ -184,7 +184,7 @@
    ...    print('x =', x)
    ...    print('y =', y)
    ...
-   <type 'Exception'>
+   <class 'Exception'>
    ('spam', 'eggs')
    ('spam', 'eggs')
    x = spam