Module to read input from commandline

james at reggieband.com james at reggieband.com
Tue May 6 08:41:30 EDT 2008


On Apr 13, 9:05 pm, ja... at reggieband.com wrote:
> On Apr 13, 7:44 pm, thashoo... at farifluset.mailexpire.com wrote:
>
> > What you're looking for is no module, it is included in the standard
> > python namespace.
> <snip>
> > raw_input
>
> Thanks for the response GL.
>
> What I am looking for is a module to wrap raw_input so it can handle
> some of the validation.

Looks like I found the module after-all:
http://blog.doughellmann.com/2008/05/pymotw-cmd.html
http://docs.python.org/lib/module-cmd.html

The cmd module does what I want and more.

Just wanted to post this in-case someone finds this through a search.

cheers,
James



More information about the Python-list mailing list