0

I have a variable definite with a "def", it's a function :

o = [<function result at 0x7f222138c7d0>]
type(o) = <type 'function'>

How to integer a if in my code ?

if type(o) == 'function':  # pseudocode
   print 'Found!'

Thanks

Guillaume
  • 2,752
  • 5
  • 27
  • 42

0 Answers0