[Python-checkins] cpython (merge 3.4 -> default): Issue #20624: Merge exception docs tweak from 3.4 branch.

mark.dickinson python-checkins at python.org
Mon Apr 14 17:21:01 CEST 2014


http://hg.python.org/cpython/rev/262204877004
changeset:   90249:262204877004
parent:      90247:fe532dccf8f6
parent:      90248:8dc1b45bd467
user:        Mark Dickinson <dickinsm at gmail.com>
date:        Mon Apr 14 11:20:45 2014 -0400
summary:
  Issue #20624: Merge exception docs tweak from 3.4 branch.

files:
  Doc/library/exceptions.rst |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -28,10 +28,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
 :ref:`tut-userexceptions`.
 
 When raising (or re-raising) an exception in an :keyword:`except` clause

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list