Commit 393a2a0f authored by Mark Dickinson's avatar Mark Dickinson

Issue #20624: Merge exception docs tweak from 3.4 branch.

parents ce4d9c2f abf079de
...@@ -28,10 +28,10 @@ handler or to report an error condition "just like" the situation in which the ...@@ -28,10 +28,10 @@ handler or to report an error condition "just like" the situation in which the
interpreter raises the same exception; but beware that there is nothing to interpreter raises the same exception; but beware that there is nothing to
prevent user code from raising an inappropriate error. prevent user code from raising an inappropriate error.
The built-in exception classes can be sub-classed to define new exceptions; The built-in exception classes can be subclassed to define new exceptions;
programmers are encouraged to at least derive new exceptions from the programmers are encouraged to derive new exceptions from the :exc:`Exception`
:exc:`Exception` class and not :exc:`BaseException`. More information on class or one of its subclasses, and not from :exc:`BaseException`. More
defining exceptions is available in the Python Tutorial under information on defining exceptions is available in the Python Tutorial under
:ref:`tut-userexceptions`. :ref:`tut-userexceptions`.
When raising (or re-raising) an exception in an :keyword:`except` clause When raising (or re-raising) an exception in an :keyword:`except` clause
......
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