'int' object is not callable
Bjorn Pettersen
BPettersen at NAREX.com
Tue Jul 22 21:14:09 EDT 2003
> From: JW [mailto:jkpangtang at yahoo.com]
>
> Hi,
>
> Suppose I have the following python method:
>
> def foo(aTuple):
> print len(aTuple) #line 1
[...]
>
> I get the following error at line 1:
> 'int' object is not callable
>
> If i remove line 1, then my foo() method does print out
> correct value for aTuple[0].
[...]
Did you assign an int to the variable "len" somewhere?
-- bjorn
More information about the Python-list
mailing list