Kaydet (Commit) 876336bc authored tarafından Guido van Rossum's avatar Guido van Rossum

New exceptions.

üst 9f462af3
......@@ -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 */
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment