summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-16 09:23:04 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-16 09:23:04 (GMT)
commit49bb9b7f0a4155c6f7cf83b3bb0cbac777a075a8 (patch)
tree9d74418acfbe062faef605a9f203e0d99fd6524e /Doc
parent076ca5a430533e76416da791dbbc35096b14ddef (diff)
downloadcpython-49bb9b7f0a4155c6f7cf83b3bb0cbac777a075a8.zip
cpython-49bb9b7f0a4155c6f7cf83b3bb0cbac777a075a8.tar.gz
cpython-49bb9b7f0a4155c6f7cf83b3bb0cbac777a075a8.tar.bz2
#6880: add reference to classes section in exceptions section, which comes earlier.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tutorial/errors.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst
index 300cbd1..a0069f5 100644
--- a/Doc/tutorial/errors.rst
+++ b/Doc/tutorial/errors.rst
@@ -245,9 +245,10 @@ re-raise the exception::
User-defined Exceptions
=======================
-Programs may name their own exceptions by creating a new exception class.
-Exceptions should typically be derived from the :exc:`Exception` class, either
-directly or indirectly. For example::
+Programs may name their own exceptions by creating a new exception class (see
+:ref:`tut-classes` for more about Python classes). Exceptions should typically
+be derived from the :exc:`Exception` class, either directly or indirectly. For
+example::
>>> class MyError(Exception):
... def __init__(self, value):