How to except the unexpected?
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Sat Mar 4 08:00:04 EST 2006
Roy Smith:
>In theory, all exceptions which represent problems with the external
>environment (rather than programming mistakes) should derive from
>Exception, but not from StandardError.
Are you sure?
"""
The class hierarchy for built-in exceptions is:
Exception
+-- StandardError
| +-- KeyboardInterrupt
| +-- ImportError
| +-- EnvironmentError
| | +-- IOError
"""
http://www.python.org/doc/current/lib/module-exceptions.html
--
René Pijlman
More information about the Python-list
mailing list