]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Document the correct class hierarchy for SystemExit. It is not an
authorBarry Warsaw <barry@python.org>
Wed, 24 Feb 1999 00:27:39 +0000 (00:27 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 24 Feb 1999 00:27:39 +0000 (00:27 +0000)
error and so it derives from Exception and not SystemError.  The
docstring was incorrect but the implementation was fine.

Lib/exceptions.py

index 2963c04c708034e48f053e86bd9c65094d4398bd..e943f7b18830a665a2893ed6899217127bc3f2fb 100644 (file)
@@ -11,10 +11,11 @@ Most existing code should continue to work with class based exceptions.  Some
 tricky uses of IOError may break, but the most common uses should work.
 
 Here is a rundown of the class hierarchy.  You can change this by editing this
-file, but it isn't recommended.  The class names described here are expected
-to be found by the bltinmodule.c file.  If you add classes here, you must
-modify bltinmodule.c or the exceptions won't be available in the __builtin__
-module, nor will they be accessible from C.
+file, but it isn't recommended because the old string based exceptions won't
+be kept in sync.  The class names described here are expected to be found by
+the bltinmodule.c file.  If you add classes here, you must modify
+bltinmodule.c or the exceptions won't be available in the __builtin__ module,
+nor will they be accessible from C.
 
 The classes with a `*' are new since Python 1.5.  They are defined as tuples
 containing the derived exceptions when string-based exceptions are used.  If
@@ -23,9 +24,9 @@ Exception.
 
 Exception(*)
  |
+ +-- SystemExit
  +-- StandardError(*)
       |
-      +-- SystemExit
       +-- KeyboardInterrupt
       +-- ImportError
       +-- EnvironmentError(*)