Diez B. Roggisch wrote:
The latter is - unfortunately - the better. This comes from python allowing all kinds of objects being thrown as exceptions, not only those extending from a common ancestor like Exception.
Fixed in Python 3. exceptions, without exceptions, are instances of BaseException, either directly or as instances of subcleasses of BaseException.
One of many reasons to switch when possible. tjr -- http://mail.python.org/mailman/listinfo/python-list