From: Mark Dickinson Date: Mon, 14 Apr 2014 15:33:46 +0000 (-0400) Subject: Issue #20624: Merge exception docs tweak from 3.4 branch. X-Git-Tag: v2.7.7rc1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f10cc46ad73861ac4fd901d65647fd862432be35;p=python Issue #20624: Merge exception docs tweak from 3.4 branch. --- diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 9943b9a55b..9291c18016 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -38,10 +38,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 prevent user code from raising an inappropriate error. -The built-in exception classes can be sub-classed to define new exceptions; -programmers are encouraged to at least derive new exceptions from the -:exc:`Exception` class and not :exc:`BaseException`. More information on -defining exceptions is available in the Python Tutorial under +The built-in exception classes can be subclassed to define new exceptions; +programmers are encouraged to derive new exceptions from the :exc:`Exception` +class or one of its subclasses, and not from :exc:`BaseException`. More +information on defining exceptions is available in the Python Tutorial under :ref:`tut-userexceptions`. The following exceptions are only used as base classes for other exceptions.