summaryrefslogtreecommitdiffstats
path: root/Lib/code.py
Commit message (Collapse)AuthorAgeFilesLines
* Moved compile_command() to a file of its own (codeop.py).Guido van Rossum1998-10-221-82/+3
|
* Rename 'locals' argument to top-level interact() function to 'local'Guido van Rossum1998-10-191-3/+3
| | | | for b/w compatibility with 1.5.1.
* Reworked it quite a bit. There are now two classes: a base class,Guido van Rossum1998-09-221-102/+206
| | | | | | | | | | 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.
* Subsume the interact() function in a class. This should make itGuido van Rossum1998-06-231-42/+197
| | | | | possible to use this in PythonWin, and to replace Fredrik Lundh's PythonInterpreter class. Fredrik is credited with the class' API.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-45/+45
|
* Seems I've found a way to fix this.Guido van Rossum1998-01-141-3/+9
|
* Add Jeff Epler's interact() function. Note that it is broken.Guido van Rossum1997-10-071-0/+52
| | | | (It should probably be withdrawn :-( )
* Checking in new module code.py -- utilities dealing with code objects.Guido van Rossum1997-07-181-0/+52
Currently, contains one function: compile_command(), which helps determining whether a source string is complete, incomplete or in error. This is useful when writing your own version of the Python read-eval-print loop.