raw_input

Eric Texier erict at millfilm.co.uk
Fri Jul 19 04:31:30 EDT 2002


Thanks, with the import of 'readline' , raw_input
does exactly what I need. It feel a little bit strange
to me that the behavior of a command depend on
a module being loaded. It there any other case like this?

Eric


Fredrik Lundh wrote:

> Eric Texier wrote:
>
> > Yes this is not what I am looking for. I was just hoping that it was
> > a little module somewhere that will let me edit a line of command
> > in the console, you know a bit like tcsh.
>
> sounds like you want raw_input:
>
> http://www.python.org/doc/current/lib/built-in-funcs.html
>
>     raw_input([prompt])
>     ...
>   If the readline module was loaded, then raw_input() will use
>   it to provide elaborate line editing and history features.
> (but if this doesn't work for you by default, chances are that
> your Python install doesn't support readline)
>
> </F>




More information about the Python-list mailing list