interpreter improvements

Skip Montanaro skip at
Fri Jul 20 21:43:39 EDT 2001

    kevin> .... Couldn't the interpreter be improved to behave more like a
    kevin> real shell, with command history and maybe evn completion or (god
    kevin> forbid) keywork syntax coloring. Couldn't it support some basic
    kevin> shell commands like more and ls and such?  Even in wish i can
    kevin> type ls and get a listing.

Here's a ten-minute hack I posted a few days ago that does some minimal
guessing about shell commands:

Knock yourself out... ;-)

As for command history and command completion, sounds like you must be stuck
on Windows.  Readline and rlcompleter do a decent job of command recall and
with the atexit module you can save the history file across sessions.

Skip Montanaro (skip at

More information about the Python-list mailing list