Newbie (but improving) - Passing a function name with parameters as a parameter
Asun Friere
afriere at yahoo.co.uk
Thu May 10 05:16:06 EDT 2007
Try again ...
Just looking over your code quickly ... the function 'lookup' returns
either True or False (a boolean) depending on whether matchcount ==
pattcount. Then in the declaration of the function 'timeloop' this
return value gets bound to 'dofunction.' The subsequent call
'dofunction()' fails, because a boolean is not callable.
Asun
More information about the Python-list
mailing list