Mega Code Archive

 
Categories / Python Tutorial / Buildin Function
 

Callable function returns True if the object can be called

import string  print string.punctuation                         print string.join                                     print callable(string.punctuation)                   print callable(string.join)                            print string.join.__doc__