DangerousExceptions (was Re[2]: [Q] Are Exceptions used that much in practice?)

Delaney, Timothy tdelaney at avaya.com
Tue Dec 12 18:57:40 EST 2000

Very much the Java system of "Exception" vs "Error". Anything which is an
"Error" is something which you probably can't recover from (or at least not
easily), though you may be able to fail gracefully. An "Exception" OTOH is
something which you should be able to deal with.

Tim Delaney
Avaya Australia
+61 2 9352 9079

> While at this i always wished that Exception has two subclasses:
> "NormalException" and "DangerousException" so one can use
> except NormalException: return 0
> and not worry about  MemoryError, KeyboardInterrupt, SystemExit,
>  ComputerExplodingError :) being improperly handled.

More information about the Python-list mailing list