Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #36062
| Date | 2013-01-03 08:24 -0600 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: Creating interactive command-line Python app? |
| References | <1135168477.969110.290850@f14g2000cwb.googlegroups.com> <198fde16-eb65-4425-9a81-147cdbd7fb07@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.40.1357222992.2939.python-list@python.org> (permalink) |
(original post from planetthoughtful didn't seem to arrive here, so replying to Bob's reply) > Newbie to Python, and I'm wondering if it's possible to create a > Python console app that prompts for further input on the command > line when run (in Windows XP, if that's important)? While Bob's suggestion of "cliff" sounds interesting, Python also offers the "cmd" module[1] in the standard library which does most of what I've needed in the past. If you've got the readline library available, it also supports autocompletion and command-line history which is a nice bonus. -tkc [1] http://docs.python.org/2/library/cmd.html # py2.x http://docs.python.org/3/library/cmd.html # py3.x Docs should be about the same
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Creating interactive command-line Python app? "bob.blanchett" <bob.blanchett@gmail.com> - 2013-01-03 04:17 -0800 Re: Creating interactive command-line Python app? Tim Chase <python.list@tim.thechases.com> - 2013-01-03 08:24 -0600 Re: Creating interactive command-line Python app? Dave Angel <d@davea.name> - 2013-01-03 09:41 -0500 Re: Creating interactive command-line Python app? Tim Chase <python.list@tim.thechases.com> - 2013-01-03 12:15 -0600
csiph-web