Package Products :: Package ZenModel :: Module zendmd :: Class HistoryConsole |
[hide private]
[frames] | no frames]

# Class HistoryConsole

source code

    code.InteractiveInterpreter --+
                                  |
            code.InteractiveConsole --+
                                      |
                                     HistoryConsole

Subclass the default InteractiveConsole to get readline history

Instance Methods | [hide private]
__init__(self, locals=None, filename="<console>", histfile=zenPath('.pyhistory')) Constructor. | source code
init_history(self, histfile) | source code
save_history(self, histfile) | source code
Inherited from `code.InteractiveConsole`: `interact`, `push`, `raw_input`, `resetbuffer` Inherited from `code.InteractiveInterpreter`: `runcode`, `runsource`, `showsyntaxerror`, `showtraceback`, `write`

Method Details | [hide private]

### __init__(self, locals=None, filename="<console>", histfile=zenPath('.pyhistory')) (Constructor) | source code
Constructor. The optional locals argument will be passed to the InteractiveInterpreter base class. The optional filename argument should specify the (file)name of the input stream; it will show up in tracebacks. Overrides: code.InteractiveConsole.__init__ (inherited documentation)