"TypeError: 'int' object is not callable"

Andre Engels andreengels at gmail.com
Mon Jun 1 06:48:34 EDT 2009


On Mon, Jun 1, 2009 at 12:40 PM, 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

Could you please give a larger piece of code, preferably such that it
can functions as a small stand-alone program that gives the same error
message? It looks to me that the problem is most likely in a previous
or subsequent line.



-- 
André Engels, andreengels at gmail.com



More information about the Python-list mailing list