other ways to check for <type 'function'>?

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Thu Nov 2 12:35:06 CET 2006


Christophe enlightened us with:
> I don't think it's a good idea because when you place a try catch
> block around a function call, you'll catch any exception thrown by
> the function itself and not only the "cannot be called" exception.

That depends on the exception you're catching, doesn't it?

Sybren
-- 
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/



More information about the Python-list mailing list