]> granicus.if.org Git - python/commitdiff
Issue #20624: Exception docs wording tweak - clarify that it's okay to inherit from...
authorMark Dickinson <dickinsm@gmail.com>
Mon, 14 Apr 2014 15:20:12 +0000 (11:20 -0400)
committerMark Dickinson <dickinsm@gmail.com>
Mon, 14 Apr 2014 15:20:12 +0000 (11:20 -0400)
Doc/library/exceptions.rst

index 0642a13384dde85b9680848d56090d1266823716..45a6b1b5d5ebac005f612c1e21c2d340f03985b3 100644 (file)
@@ -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
 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`.
 
 When raising (or re-raising) an exception in an :keyword:`except` clause