From: Guido van Rossum Date: Sun, 21 Oct 1990 22:09:30 +0000 (+0000) Subject: Added err_badcall() and planned new errors. X-Git-Tag: v0.9.8~1160 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e55cb6302c7136b9e5fec6dd9213aa27e9978de;p=thirdparty%2FPython%2Fcpython.git Added err_badcall() and planned new errors. --- diff --git a/Include/errors.h b/Include/errors.h index c8fc63b1e3e6..f0e37620b9e2 100755 --- a/Include/errors.h +++ b/Include/errors.h @@ -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)); diff --git a/Include/pyerrors.h b/Include/pyerrors.h index c8fc63b1e3e6..f0e37620b9e2 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -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));