On Mon, Jun 1, 2009 at 12:40 PM, Visco Shaun <visc...@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, andreeng...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list