summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-27 19:02:51 +0000
committerGuido van Rossum <guido@python.org>1998-08-27 19:02:51 +0000
commit10c774b5860bb2ab5f48e00f93040cfc1a5c35fb (patch)
tree981745f58dafa31a74f89b75a45d7e253f910823 /Python/pythonrun.c
parentfd15403fce1d9a026c45e9fa9f40c7afc4b34aaa (diff)
downloadcpython-10c774b5860bb2ab5f48e00f93040cfc1a5c35fb.tar.gz
Changes by Richard Wolff:
1) I added a command queue which is helpful to me (at least so far) and would also allow syntax like 's;s' (step; step) in conjunction with precmd 2) doc_leader allows the derived class to print a message before the help output. Defaults to current practise of a blank line 3) nohelp allows one to override the 'No help on' message. I need 'Undefined command: "%s". Try "help".' 4) Pass line to self.precmd to allow one to do some parsing: change first word to lower case, strip out a leading number, whatever. 5) Pass the result of onecmd and the input line to postcmd. This allows one to ponder the stop result before it is effective. 6) emptyline() requires a if self.lastcmd: conditional because if the first command is null (<cr>), you get an infinite recursion with the code as it stands.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions