Mercurial > cpython-lru_cache-weakref
diff Include/pyerrors.h @ 23:08562de01668 legacy-trunk
Added err_badcall() and planned new errors.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 21 Oct 1990 22:09:30 +0000 |
| parents | a71e896ed047 |
| children | a6934380c6e7 |
line wrap: on
line diff
--- a/Include/pyerrors.h Sun Oct 21 22:09:12 1990 +0000 +++ b/Include/pyerrors.h Sun Oct 21 22:09:30 1990 +0000 @@ -17,8 +17,17 @@ 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));
