"TypeError: 'int' object is not callable"

Chris Rebert clp2 at rebertia.com
Mon Jun 1 12:50:31 CEST 2009


On Mon, Jun 1, 2009 at 3:40 AM, Visco Shaun <visco31 at gmail.com> wrote:
> 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):
>
> c can be a string or an integer representing an error

Please also, now and in the future, provide the full error traceback
as it is very necessary in order to determine the problem.

Cheers,
Chris
-- 
http://blog.rebertia.com



More information about the Python-list mailing list