[Python-checkins] r74818 - python/trunk/Doc/tutorial/errors.rst

georg.brandl python-checkins at python.org
Wed Sep 16 11:23:04 CEST 2009


Author: georg.brandl
Date: Wed Sep 16 11:23:04 2009
New Revision: 74818

Log:
#6880: add reference to classes section in exceptions section, which comes earlier.

Modified:
   python/trunk/Doc/tutorial/errors.rst

Modified: python/trunk/Doc/tutorial/errors.rst
==============================================================================
--- python/trunk/Doc/tutorial/errors.rst	(original)
+++ python/trunk/Doc/tutorial/errors.rst	Wed Sep 16 11:23:04 2009
@@ -245,9 +245,10 @@
 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):


More information about the Python-checkins mailing list