Edward C. Jones wrote:
Here is a weak proposal for a generalized type of exception. Since I know nothing about either language design or implementation, my hope is to trigger some thinking by the experts.
I don't know anything about it either.
MyError = ExceptionList( (ValueError, TypeError) )
"raise MyError" raises an exception that can be handled by any except clause that handles MyError, ValueError, or TypeError.
Perhaps MyError could be a class with base classes ValueError and TypeError.
So where's the need? You can already do: class MyError(ValueError, TypeError): ... etc.? Gerrit. -- Weather: 6°C Hail Wednesday 11 February 2004 11:55 Twenthe Netherlands -- PrePEP: Builtin path type http://people.nl.linux.org/~gerrit/creaties/path/pep-xxxx.html Asperger's Syndrome - a personal approach: http://people.nl.linux.org/~gerrit/english/