How to tell if an exception has been caught ( from inside the exception )?

Dan dan at cellectivity.com
Thu Sep 22 09:27:35 EDT 2005


If the exception isn't caught, it is printed to standard error. This
means that either __str__ or __repr__ is called (to convert it to a
displayable string). If the exception is caught, those methods
*probably* won't be called.

-- 
    Where you are is not as important as where you are going.
        - Oliver Wendell Holmes, U.S. Supreme Court Justice





More information about the Python-list mailing list