Comment

Anonymous

Except for callables which might trigger nuclear weapons.

Parent comment

Anonymous

probably the best way (if you can afford to wait until the last possible moment) is to try making the call and catch the TypeError exception