"TypeError: 'int' object is not callable"
R.Brodie at rl.ac.uk
Mon Jun 1 06:45:29 EDT 2009
"Visco Shaun" <visco31 at gmail.com> wrote in message
news:mailman.966.1243852864.8015.python-list at python.org...
> when I was executing the below code I got "TypeError: 'int' object is
> not callable" exception. Why is it so?
> if type(c) == type(ERROR):
You've probably assigned to type somewhere in your code. What does
print repr(type) give?
More information about the Python-list