Callable assertion?

A.M. Kuchling amk at amk.ca
Sun Oct 5 10:12:12 EDT 2003


On Sun, 05 Oct 2003 08:55:45 -0400, 
	Roy Smith <roy at panix.com> wrote:
> the right thing to do, or is there something cleaner?  Will that work 
> for all callable values of param, regardless if it's a static function, 
> class method, built-in, etc?

There's a callable(param) built-in function, dating back to Python 1.2.

--amk




More information about the Python-list mailing list