TypeError: 'int' object is not callable for max(2,3)
Steve Holden
steve at holdenweb.com
Wed Jul 25 18:16:11 EDT 2007
Arash Arfaee wrote:
> Hi all,
> I have a problem. if I enter max(2,3) before I run my program in command
> line it returns 3. However if I start to debug my program, I have this
> error:
>
> [Dbg]>>> max(2,3)
> Traceback (most recent call last):
> File "<interactive input>", line 1, in <module>
> TypeError: 'int' object is not callable
>
> Any idea what should be the reason?
>
You have assigned an integer value to the name max, thereby shadowing
the builtin function.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
More information about the Python-list
mailing list