TypeError: 'module' object is not callable
7stud
bbxx789_05ss at yahoo.com
Fri Mar 16 15:15:33 EDT 2007
Hi,
I can't find any documentation on the profile() function. But it
might take a function reference as an argument and not the string you
are feeding it. For instance:
profile(t.printworld)
Note the difference between:
t.printworld
t.printworld()
The latter executes the function and then replaces the function call
with the return value of the function.
More information about the Python-list
mailing list