Kaydet (Commit) 49bb9b7f authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 076ca5a4
...@@ -245,9 +245,10 @@ re-raise the exception:: ...@@ -245,9 +245,10 @@ re-raise the exception::
User-defined Exceptions User-defined Exceptions
======================= =======================
Programs may name their own exceptions by creating a new exception class. Programs may name their own exceptions by creating a new exception class (see
Exceptions should typically be derived from the :exc:`Exception` class, either :ref:`tut-classes` for more about Python classes). Exceptions should typically
directly or indirectly. For example:: be derived from the :exc:`Exception` class, either directly or indirectly. For
example::
>>> class MyError(Exception): >>> class MyError(Exception):
... def __init__(self, value): ... def __init__(self, value):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment