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
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