summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-09-22 20:38:53 (GMT)
committerGuido van Rossum <guido@python.org>1998-09-22 20:38:53 (GMT)
commit5227f0fdcd99d90acdd712f96ea5cd2d7331c53f (patch)
treeeae3b08430f922e946898478a14e2c5c4d88e577 /Doc
parent218eb75ba712d28e8999b270666fd18b25d128fd (diff)
downloadcpython-5227f0fdcd99d90acdd712f96ea5cd2d7331c53f.zip
cpython-5227f0fdcd99d90acdd712f96ea5cd2d7331c53f.tar.gz
cpython-5227f0fdcd99d90acdd712f96ea5cd2d7331c53f.tar.bz2
Reworked it quite a bit. There are now two classes: a base class,
InteractiveInterpreter, which handles parsing and interpreter state but doesn't know deal with buffering or prompting or input file naming. And a derived class, InteractiveConsole, which adds buffering and prompting and supports setting the filename once. Also tweak the algorithm in compile_command() a bit so that input consisting of all blank lines or comments always succeeds immediately, and note the fact that apart from SyntaxError it can also raise OverflowError.
Diffstat (limited to 'Doc')
0 files changed, 0 insertions, 0 deletions