R: [Python-Dev] Deprecating string exceptions
Patrick K. O'Brien
pobrien@orbtech.com
Thu, 28 Mar 2002 11:29:05 -0600
[Guido van Rossum]
>
> > (Does anybody else lament the lack of an inheritance diagram in the
> > exceptions module documentation?)
>
> I do lament it! It's a shame that the only useful diagram is hidden
> in a C source file.
>>> import exceptions
>>> print exceptions.__doc__[1109:]
Exception
|
+-- SystemExit
+-- StopIteration
+-- StandardError
| |
| +-- KeyboardInterrupt
| +-- ImportError
| +-- EnvironmentError
| | |
| | +-- IOError
| | +-- OSError
| | |
| | +-- WindowsError
| |
| +-- EOFError
| +-- RuntimeError
| | |
| | +-- NotImplementedError
| |
| +-- NameError
| | |
| | +-- UnboundLocalError
| |
| +-- AttributeError
| +-- SyntaxError
| | |
| | +-- IndentationError
| | |
| | +-- TabError
| |
| +-- TypeError
| +-- AssertionError
| +-- LookupError
| | |
| | +-- IndexError
| | +-- KeyError
| |
| +-- ArithmeticError
| | |
| | +-- OverflowError
| | +-- ZeroDivisionError
| | +-- FloatingPointError
| |
| +-- ValueError
| | |
| | +-- UnicodeError
| |
| +-- ReferenceError
| +-- SystemError
| +-- MemoryError
|
+---Warning
|
+-- UserWarning
+-- DeprecationWarning
+-- SyntaxWarning
+-- OverflowWarning
+-- RuntimeWarning
Time machine appears to be working.
---
Patrick K. O'Brien
Orbtech