a curious IDLE Error

Alan Gauld alan.gauld at btinternet.com
Thu Jan 22 09:02:13 CET 2004

On Wed, 21 Jan 2004 21:50:01 -0800, EP <EP at zomething.com> wrote:

> I opened a new Python shell from the instance of IDLE editor where my 
> module was open and tried the raw_input():
>  >>> someFile=raw_input("enter:  ")
> Traceback (most recent call last):
>    File "<pyshell#36>", line 1, in ?
>      someFile=raw_input("enter:  ")
> TypeError: 'tuple' object is not callable

This is a long shot but is it possible that you used raw_input as
the name of a variable somewhere. Thus you are trying to call
that variable (which apparently holds a tuple!).

Try doing a text search for raw_input in your module code.

Just a thought.

Alan G.
Author of the Learn to Program website

More information about the Python-list mailing list