Alex Rivera | Logout

alternative to callable(),for use in Python 3

Asked 2010-12-08T01:34:56.947
13

I looked at this thread but some of the concepts are above my current level. In Python 2.x, the callable() built-in method exists; is there a simple way to check to see if something is callable or not using Python 3?

Edit
Report

1 Answer

40

It's back. Python 3.2 has callable(); there is no longer a need to use one of the less convenient alternatives.

answered 2012-04-06T15:43:39.850

Your Answer