From: Georg Brandl Date: Wed, 16 Sep 2009 09:23:04 +0000 (+0000) Subject: #6880: add reference to classes section in exceptions section, which comes earlier. X-Git-Tag: v2.7a1~536 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49bb9b7f0a4155c6f7cf83b3bb0cbac777a075a8;p=thirdparty%2FPython%2Fcpython.git #6880: add reference to classes section in exceptions section, which comes earlier. --- diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 300cbd14e939..a0069f5f6ff2 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):