What is proper way to require a method to be overridden?
Dan Bishop
danb_83 at yahoo.com
Fri Jan 5 01:13:26 EST 2007
On Jan 4, 11:57 pm, belinda thom <b... at cs.hmc.edu> wrote:
...
> So, back to my question: is a catalog of standard python errors
> available? I've looked on the python site but had no success.
>>> [name for name in dir(__builtins__) if name.endswith('Error')]
['ArithmeticError', 'AssertionError', 'AttributeError', 'EOFError',
'EnvironmentError', 'FloatingPointError', 'IOError', 'ImportError',
'IndentationError', 'IndexError', 'KeyError', 'LookupError',
'MemoryError', 'NameError', 'NotImplementedError', 'OSError',
'OverflowError', 'ReferenceError', 'RuntimeError', 'StandardError',
'SyntaxError', 'SystemError', 'TabError', 'TypeError',
'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError',
'UnicodeError', 'UnicodeTranslateError', 'ValueError',
'ZeroDivisionError']
More information about the Python-list
mailing list