Skip to content

Commit 5227f0f

Browse files
committed
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.
1 parent 218eb75 commit 5227f0f

File tree

1 file changed

+206
-102
lines changed

1 file changed

+206
-102
lines changed

0 commit comments

Comments
 (0)