Re: raw_input with a pre-compiled data

2009-06-22 Thread Peter Otten
Luca wrote: > On Sun, Jun 21, 2009 at 12:51 PM, Peter Otten<__pete...@web.de> wrote: >> import readline > Any one knows is this working also on Windows? I've no Win system > right no to test this... I do not have Windows available, either, but you might try http://ipython.scipy.org/moin/PyRea

Re: raw_input with a pre-compiled data

2009-06-22 Thread Chris Rebert
On Mon, Jun 22, 2009 at 1:19 AM, Luca wrote: > On Sun, Jun 21, 2009 at 12:51 PM, Peter Otten<__pete...@web.de> wrote: >> With "traduced" you stumbled upon another false friend ;) >> >> http://it.wikipedia.org/wiki/Falso_amico > > D'oh!!!   x-) > >> import readline >> >> def input_default(prompt, de

Re: raw_input with a pre-compiled data

2009-06-22 Thread Luca
On Sun, Jun 21, 2009 at 12:51 PM, Peter Otten<__pete...@web.de> wrote: > With "traduced" you stumbled upon another false friend ;) > > http://it.wikipedia.org/wiki/Falso_amico D'oh!!! x-) > import readline > > def input_default(prompt, default): >    def startup_hook(): >        readline.insert

Re: raw_input with a pre-compiled data

2009-06-21 Thread Dave Angel
Peter Otten wrote: Luca wrote: On Sat, Jun 20, 2009 at 6:38 PM, Chris Rebert wrote: On Sat, Jun 20, 2009 at 7:17 AM, Luca wrote: Hi all. I need to use a function like the raw_input to read data from user command line, but I really like to pre-compile the choice and I'm not abl

Re: raw_input with a pre-compiled data

2009-06-21 Thread Peter Otten
Luca wrote: > On Sat, Jun 20, 2009 at 6:38 PM, Chris Rebert wrote: >> On Sat, Jun 20, 2009 at 7:17 AM, Luca wrote: >>> Hi all. >>> >>> I need to use a function like the raw_input to read data from user >>> command line, but I really like to pre-compile the choice and I'm not >>> able to do this. T

Re: raw_input with a pre-compiled data

2009-06-21 Thread Luca
On Sat, Jun 20, 2009 at 6:38 PM, Chris Rebert wrote: > On Sat, Jun 20, 2009 at 7:17 AM, Luca wrote: >> Hi all. >> >> I need to use a function like the raw_input to read data from user >> command line, but I really like to pre-compile the choice and I'm not >> able to do this. There is some other fu

Re: raw_input with a pre-compiled data

2009-06-20 Thread Dave Angel
patx wrote: Could you use if elif statements? Don't understand what you mean really? On Sat, Jun 20, 2009 at 3:01 PM, Dave Angel wrote: Luca wrote: Hi all. I need to use a function like the raw_input to read data from user command line, but I really like to pre-compile the choice a

Re: raw_input with a pre-compiled data

2009-06-20 Thread Dave Angel
Luca wrote: Hi all. I need to use a function like the raw_input to read data from user command line, but I really like to pre-compile the choice and I'm not able to do this. There is some other function/module I can use? I wanna to pre-compile the raw_input input line with the current working pa

Re: raw_input with a pre-compiled data

2009-06-20 Thread Gabriel Genellina
En Sat, 20 Jun 2009 11:17:01 -0300, Luca escribió: I need to use a function like the raw_input to read data from user command line, but I really like to pre-compile the choice and I'm not able to do this. There is some other function/module I can use? I wanna to pre-compile the raw_input input

Re: raw_input with a pre-compiled data

2009-06-20 Thread Chris Rebert
On Sat, Jun 20, 2009 at 7:17 AM, Luca wrote: > Hi all. > > I need to use a function like the raw_input to read data from user > command line, but I really like to pre-compile the choice and I'm not > able to do this. There is some other function/module I can use? > I wanna to pre-compile the raw_in

raw_input with a pre-compiled data

2009-06-20 Thread Luca
Hi all. I need to use a function like the raw_input to read data from user command line, but I really like to pre-compile the choice and I'm not able to do this. There is some other function/module I can use? I wanna to pre-compile the raw_input input line with the current working path. -- -- lu