Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 505:095d9cf4e3e6 legacy-trunk
Sorted exceptions; added ImportError.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 24 Dec 1991 13:24:53 +0000 |
| parents | 0ac9d5db41c8 |
| children | 9f06c6689f0d |
line wrap: on
line diff
--- a/Python/bltinmodule.c Wed Dec 18 13:45:17 1991 +0000 +++ b/Python/bltinmodule.c Tue Dec 24 13:24:53 1991 +0000 @@ -605,6 +605,7 @@ object *AttributeError; object *EOFError; object *IOError; +object *ImportError; object *IndexError; object *KeyError; object *KeyboardInterrupt; @@ -631,21 +632,22 @@ static void initerrors() { - RuntimeError = newstdexception("RuntimeError"); + AttributeError = newstdexception("AttributeError"); EOFError = newstdexception("EOFError"); - TypeError = newstdexception("TypeError"); + IOError = newstdexception("IOError"); + ImportError = newstdexception("ImportError"); + IndexError = newstdexception("IndexError"); + KeyError = newstdexception("KeyError"); + KeyboardInterrupt = newstdexception("KeyboardInterrupt"); MemoryError = newstdexception("MemoryError"); NameError = newstdexception("NameError"); + OverflowError = newstdexception("OverflowError"); + RuntimeError = newstdexception("RuntimeError"); + SyntaxError = newstdexception("SyntaxError"); SystemError = newstdexception("SystemError"); - KeyboardInterrupt = newstdexception("KeyboardInterrupt"); - AttributeError = newstdexception("AttributeError"); - IOError = newstdexception("IOError"); + TypeError = newstdexception("TypeError"); + ValueError = newstdexception("ValueError"); ZeroDivisionError = newstdexception("ZeroDivisionError"); - IndexError = newstdexception("IndexError"); - ValueError = newstdexception("ValueError"); - KeyError = newstdexception("KeyError"); - OverflowError = newstdexception("OverflowError"); - SyntaxError = newstdexception("SyntaxError"); } void
