source[, filename[, symbol]]) |
'<input>'
, and for
symbol is 'single'
. One several things can happen:
False
.
None
.
runsource() returns True
.
False
.
The return value can be used to decide whether to use
sys.ps1
or sys.ps2
to prompt the next line.
code) |
A note about KeyboardInterrupt: this exception may occur elsewhere in this code, and may not always be caught. The caller should be prepared to deal with it.
[filename]) |
'<string>'
when reading from a string.
The output is written by the write() method.
) |
data) |
sys.stderr
).
Derived classes should override this to provide the appropriate output
handling as needed.
See About this document... for information on suggesting changes.