Re: Module to read input from commandline

2008-05-06 Thread python
Hi James, > What I was looking for was a commandline read loop that executes within a > script that is already running ... or can optparse be used in this context as well? Apologies. I missed the nuance of the read loop within an already running script. Malcolm -- http://mail.python.org/mailman

Re: Module to read input from commandline

2008-05-06 Thread Banibrata Dutta
something like "curses" but w/o the fancy window decorations perhaps ? if so, then following link might help ( http://www.amk.ca/python/howto/curses/). thanks & regards, banibrata On Tue, May 6, 2008 at 6:56 PM, <[EMAIL PROTECTED]> wrote: > On May 6, 2:11 pm, [EMAIL PROTECTED] wrote: > > > Check

Re: Module to read input from commandline

2008-05-06 Thread james
On May 6, 2:11 pm, [EMAIL PROTECTED] wrote: > Check out the optparse module as well. The optparse module supercedes(?) > the cmd module and offers a lot more functionality. Hi Malcom, Doesn't the optparse module work by parsing the arguments that are passed to the script when it is invoked? Wha

Re: Module to read input from commandline

2008-05-06 Thread python
James, Check out the optparse module as well. The optparse module supercedes(?) the cmd module and offers a lot more functionality. Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Module to read input from commandline

2008-05-06 Thread james
On Apr 13, 9:05 pm, [EMAIL PROTECTED] wrote: > On Apr 13, 7:44 pm, [EMAIL PROTECTED] wrote: > > > What you're looking for is no module, it is included in the standard > > python namespace. > > > raw_input > > Thanks for the response GL. > > What I am looking for is a module to wrap raw_input so it

Re: Module to read input from commandline

2008-04-13 Thread james
On Apr 13, 7:44 pm, [EMAIL PROTECTED] wrote: > What you're looking for is no module, it is included in the standard > python namespace. > > raw_input > > Use it like this: > > value_a = raw_input("Please give a value for a: ") > # do your thing to value_a > > But this belongs to the real basics, I

Re: Module to read input from commandline

2008-04-13 Thread thashooski
What you're looking for is no module, it is included in the standard python namespace. raw_input Use it like this: value_a = raw_input("Please give a value for a: ") # do your thing to value_a But this belongs to the real basics, I suggest you get some reading done on python. GL -- http://mai

Re: Module to read input from commandline

2008-04-13 Thread Ben Kaplan
Unless I misunderstand your needs, you could just use raw_input(prompt) to get your answers. - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: python-list@python.org Sent: Sunday, April 13, 2008 11:12:06 AM Subject: Module to read input from command

Module to read input from commandline

2008-04-13 Thread james
Hi all, I did some quick searching but I haven't found anything like I want. It probably has to do with the terms I am searching for so if I describe what I want then I hope someone can point me to a good module. I want to take input from the user at the command line. e.g.) Would you like to cont