Trees | Indices | Help |
|
---|
|
Utilities needed to emulate Python's interactive interpreter.
|
|||
InteractiveInterpreter Base class for InteractiveConsole. |
|||
InteractiveConsole Closely emulate the behavior of the interactive Python interpreter. |
|
|||
|
|||
|
|||
|
Imports: sys, traceback, CommandCompiler
|
Compile a command and determine whether it is incomplete. Arguments: source -- the source string; may contain \n characters filename -- optional filename from which source was read; default "<input>" symbol -- optional grammar start symbol; "single" (default) or "eval" Return value / exceptions raised: - Return a code object if the command is complete and valid - Return None if the command is incomplete - Raise SyntaxError, ValueError or OverflowError if the command is a syntax error (OverflowError and ValueError can be produced by malformed literals). |
Closely emulate the interactive Python interpreter. This is a backwards compatible interface to the InteractiveConsole class. When readfunc is not specified, it attempts to import the readline module to enable GNU readline if it is available. Arguments (all optional, all default to None): banner -- passed to InteractiveConsole.interact() readfunc -- if not None, replaces InteractiveConsole.raw_input() local -- passed to InteractiveInterpreter.__init__() |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 13 23:35:35 2008 | http://epydoc.sourceforge.net |