gett error message: "TypeError: 'int' object is not callable"

Richard Brodie R.Brodie at
Thu Jul 9 12:30:42 EDT 2009

"Tom Kermode" <tkermode at> wrote in message 
news:mailman.2903.1247155607.8015.python-list at

> Do you know a good way to avoid running into this problem?  It
> makes sense to suggest not calling variables the same names as
> built-in functions, but that's hard for a new python programmer who
> doesn't already know what all the built-in functions are.

No, but not redefining the ones you actually use is a good start.
Learning to understand the traceback is the more important lesson,
IMHO. It takes a while to tune into what error messages are trying
to tell you; even when you stop making newbie mistakes, you're
going to have to deal with runtime errors from time to time. 

More information about the Python-list mailing list