]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
New exceptions.
authorGuido van Rossum <guido@python.org>
Tue, 10 Dec 1991 13:56:23 +0000 (13:56 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Dec 1991 13:56:23 +0000 (13:56 +0000)
Include/errors.h
Include/pyerrors.h

index e40f6ce34d673127fe620cf7de3378275ad740a8..29c23e9f485190d1e1bda7d06c8815728a39cf7f 100755 (executable)
@@ -41,12 +41,14 @@ extern object *NameError;
 extern object *SystemError;
 extern object *KeyboardInterrupt;
 
-/* Some more planned for the future */
-
-#define IndexError             RuntimeError
-#define KeyError               RuntimeError
-#define ZeroDivisionError      RuntimeError
-#define OverflowError          RuntimeError
+/* New exceptions */
+extern object *AttributeError;
+extern object *IOError;
+extern object *ZeroDivisionError;
+extern object *IndexError;
+extern object *ValueError;
+extern object *KeyError;
+extern object *OverflowError;
 
 /* Convenience functions */
 
index e40f6ce34d673127fe620cf7de3378275ad740a8..29c23e9f485190d1e1bda7d06c8815728a39cf7f 100644 (file)
@@ -41,12 +41,14 @@ extern object *NameError;
 extern object *SystemError;
 extern object *KeyboardInterrupt;
 
-/* Some more planned for the future */
-
-#define IndexError             RuntimeError
-#define KeyError               RuntimeError
-#define ZeroDivisionError      RuntimeError
-#define OverflowError          RuntimeError
+/* New exceptions */
+extern object *AttributeError;
+extern object *IOError;
+extern object *ZeroDivisionError;
+extern object *IndexError;
+extern object *ValueError;
+extern object *KeyError;
+extern object *OverflowError;
 
 /* Convenience functions */