[Tutor] Images, and other things.

Kent Johnson kent37 at tds.net
Wed Sep 30 13:37:55 CEST 2009


On Tue, Sep 29, 2009 at 7:00 PM, Corey Richardson <kb1pkl at aim.com> wrote:
> I haven't looked into this, but could you make a real time image using
> python? I think it would be most hard....
> Anyway, I am having trouble with int(). I am trying to int(raw_input("some
> number")), but it returns
> Traceback (most recent call last):
>  File "C:/Users/Quick-Start/Documents/Python Doc's/Game_File", line 94, in
> <module>
>   fatness = int(raw_input("How many candies do you want to eat? :"))
> TypeError: 'int' object is not callable

You probably have a line like
  int = 3
in your program which rebinds the built-in int() function to a
(non-callable) int object.

Showing the whole program would help.

Kent


More information about the Tutor mailing list