[Python-checkins] cpython (2.7): Issue #20624: Merge exception docs tweak from 3.4 branch.
python-checkins at python.org
Mon Apr 14 17:34:04 CEST 2014
user: Mark Dickinson <dickinsm at gmail.com>
date: Mon Apr 14 11:33:46 2014 -0400
Issue #20624: Merge exception docs tweak from 3.4 branch.
Doc/library/exceptions.rst | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
@@ -38,10 +38,10 @@
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
The following exceptions are only used as base classes for other exceptions.
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins