summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/exceptio.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-22 13:50:33 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-22 13:50:33 (GMT)
commit7ea1d972d1519ac8cb8051ff0e99d02e9ef71251 (patch)
tree55317bb06946ba95640e4cbe97588f9cf743f045 /Lib/dos-8x3/exceptio.py
parentfdd302820ec8f8af0baa3e58a2795d00f14dffcb (diff)
downloadcpython-7ea1d972d1519ac8cb8051ff0e99d02e9ef71251.zip
cpython-7ea1d972d1519ac8cb8051ff0e99d02e9ef71251.tar.gz
cpython-7ea1d972d1519ac8cb8051ff0e99d02e9ef71251.tar.bz2
The usual.
# Message to all python-checkins readers: we have a problem with the # CVS mirroring software. You can't check out the latest changes yet. # We hope to have fixed this by noon EST today.
Diffstat (limited to 'Lib/dos-8x3/exceptio.py')
-rw-r--r--Lib/dos-8x3/exceptio.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/dos-8x3/exceptio.py b/Lib/dos-8x3/exceptio.py
index 9c733ce..12da416 100644
--- a/Lib/dos-8x3/exceptio.py
+++ b/Lib/dos-8x3/exceptio.py
@@ -12,9 +12,11 @@ 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.
+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 as of Python 1.5. They are defined as tuples
+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
you define your own class based exceptions, they should be derived from
Exception.
@@ -33,6 +35,9 @@ Exception(*)
|
+-- EOFError
+-- RuntimeError
+ | |
+ | +-- NotImplementedError(*)
+ |
+-- NameError
+-- AttributeError
+-- SyntaxError
@@ -130,6 +135,9 @@ class OSError(EnvironmentError):
class RuntimeError(StandardError):
pass
+class NotImplementedError(RuntimeError):
+ pass
+
class SystemError(StandardError):
pass