Why should input(prompt="hello:") fail?

zhi wongwung at hotmail.com
Mon Nov 24 11:31:55 EST 2003


Really confused, when I use keyword style argument as following:

>>> input(prompt="hello")

Traceback (most recent call last):
  File "<pyshell#52>", line 1, in -toplevel-
    input(prompt="hello")
TypeError: input() takes no keyword arguments

While the library reference says the function is: input( [prompt]) 
so, it should work.:(

I am using python 2.3 for windows.
Have anyone tried this? 
I am new to python, please help me, thanks.




More information about the Python-list mailing list