]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added err_badcall() and planned new errors.
authorGuido van Rossum <guido@python.org>
Sun, 21 Oct 1990 22:09:30 +0000 (22:09 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 21 Oct 1990 22:09:30 +0000 (22:09 +0000)
Include/errors.h
Include/pyerrors.h

index c8fc63b1e3e681e01e9be944f1673c2a0938c85f..f0e37620b9e2cadf995ca514d5babd550ca9c20b 100755 (executable)
@@ -17,8 +17,17 @@ 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
+
 /* Convenience functions */
 
 extern int err_badarg PROTO((void));
 extern object *err_nomem PROTO((void));
 extern object *err_errno PROTO((object *));
+
+extern void err_badcall PROTO((void));
index c8fc63b1e3e681e01e9be944f1673c2a0938c85f..f0e37620b9e2cadf995ca514d5babd550ca9c20b 100644 (file)
@@ -17,8 +17,17 @@ 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
+
 /* Convenience functions */
 
 extern int err_badarg PROTO((void));
 extern object *err_nomem PROTO((void));
 extern object *err_errno PROTO((object *));
+
+extern void err_badcall PROTO((void));