Testing whether something is of type Exception

Paddy paddy3118 at googlemail.com
Sat Jan 26 09:12:20 CET 2008


On Jan 24, 11:14 pm, John Nagle <na... at animats.com> wrote:
>     How can I tell whether an object is of type Exception?

Use it as if it is one and catch any exceptions :-)

- Paddy. (Grabs coat, heads for the exit)



More information about the Python-list mailing list