summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2008-04-07 05:43:42 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2008-04-07 05:43:42 (GMT)
commit250ad613f3ae7e237e28d3a7a15a9b6fac16129f (patch)
tree5484e62a1ee0b0d9b7008cad32ab33392db7e78e /Doc
parent5a6f4585fdc52959bcc0dfdb9d25f2d34f983300 (diff)
downloadcpython-250ad613f3ae7e237e28d3a7a15a9b6fac16129f.zip
cpython-250ad613f3ae7e237e28d3a7a15a9b6fac16129f.tar.gz
cpython-250ad613f3ae7e237e28d3a7a15a9b6fac16129f.tar.bz2
Bug #2565: The repr() of type objects now calls them 'class',
not 'type' - whether they are builtin types or not.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/stdtypes.rst2
-rw-r--r--Doc/tutorial/errors.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 5213598..65408ce 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -2345,7 +2345,7 @@ by the built-in function :func:`type`. There are no special operations on
types. The standard module :mod:`types` defines names for all standard built-in
types.
-Types are written like this: ``<type 'int'>``.
+Types are written like this: ``<class 'int'>``.
.. _bltin-null-object:
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index 5c652a9..cedffd5 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -184,7 +184,7 @@ desired. ::
... print('x =', x)
... print('y =', y)
...
- <type 'Exception'>
+ <class 'Exception'>
('spam', 'eggs')
('spam', 'eggs')
x = spam