Newbie question: Input

Endgamer endgamer71 at hotmail.com
Tue Nov 9 14:52:45 CET 1999


On Mon, 8 Nov 1999 08:55:07 -0500, "Darrell" <news at dorb.com> wrote:

>From Python Library Reference:
>
>raw_input ([prompt])
>If the prompt argument is present, it is written to standard output without
>a trailing newline. The function then reads a line from input, converts it
>to a string (stripping a trailing newline), and returns that. When EOF is
>read, EOFError is raised. Example:
>
>>>> s = raw_input('--> ')
>--> Monty Python's Flying Circus
>>>> s
>"Monty Python's Flying Circus"
>>>>
>
>If the readline module was loaded, then raw_input() will use it to provide
>elaborate line editing and history features.

Cheers, Darrell. This is just what I was looking for!



Endgamer
Spider Warrior

(Endgamer71 at spamtrap.hotmail.com)
#####################################
Not a quote, just an on-the-spot observation:
You know you're a geek when your PC costs exactly
15 times as much as your stereo. And gives better
sound quality.<sigh>
                              Endgamer
#####################################




More information about the Python-list mailing list