Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Get rid of a bunch more raw_input references | Neal Norwitz | 2006-03-17 | 1 | -4/+6 |
| | |||||
* | - Finally fixed the bug in compile() and exec where a string ending | Guido van Rossum | 2003-02-13 | 1 | -1/+2 |
| | | | | | | | | | with an indented code block but no newline would raise SyntaxError. This would have been a four-line change in parsetok.c... Except codeop.py depends on this behavior, so a compilation flag had to be invented that causes the tokenizer to revert to the old behavior; this required extra changes to 2 .h files, 2 .c files, and 2 .py files. (Fixes SF bug #501622.) | ||||
* | Convert a pile of obvious "yes/no" functions to return bool. | Tim Peters | 2002-04-04 | 1 | -4/+4 |
| | |||||
* | make default banner match what the real interpreter displays | Skip Montanaro | 2002-03-25 | 1 | -1/+1 |
| | |||||
* | remove unqualified excepts - catch ImportError when trying to import | Skip Montanaro | 2002-03-25 | 1 | -7/+2 |
| | | | | | | readline and get rid of string exception fallback when showing syntax errors. see bug 411881 | ||||
* | softspace(): be prepared to catch AttributeError as well as TypeError | Guido van Rossum | 2001-09-18 | 1 | -1/+2 |
| | | | | upon attempted attribute assignment. Caught by MWH, SF bug #462522. | ||||
* | A fiddled version of the rest of Michael Hudson's SF patch | Tim Peters | 2001-08-17 | 1 | -3/+4 |
| | | | | | #449043 supporting __future__ in simulated shells which implements PEP 264. | ||||
* | InteractiveInterpreter.showsyntaxerror(): | Fred Drake | 2001-05-03 | 1 | -0/+1 |
| | | | | | When replacing the exception object, be sure we stuff the new value in sys.last_value (which we already did for the original value). | ||||
* | String method conversion. | Eric S. Raymond | 2001-02-09 | 1 | -2/+1 |
| | |||||
* | added __all__ lists to a number of Python modules | Skip Montanaro | 2001-01-20 | 1 | -0/+3 |
| | | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation. | ||||
* | mwh@sourceforge found that UnicodeError can be raised by compiling. | Guido van Rossum | 2001-01-15 | 1 | -1/+1 |
| | | | | Its base class ValueError can be raised too, so catch that. | ||||
* | Make the copyright message the same as for the "real" interpreter. | Guido van Rossum | 2001-01-14 | 1 | -1/+2 |
| | |||||
* | SF Patch #103227 by mwh: make code.py appreciate softspace | Guido van Rossum | 2001-01-13 | 1 | -0/+14 |
| | |||||
* | Make Traceback header conform to new traceback ("innermost last" -> | Guido van Rossum | 2000-12-27 | 1 | -1/+1 |
| | | | | "most recent call last"). | ||||
* | Simple changes by Gerrit Holl - move author acknowledgements out of | Guido van Rossum | 2000-02-28 | 1 | -1/+2 |
| | | | | docstrings into comments. | ||||
* | Moved compile_command() to a file of its own (codeop.py). | Guido van Rossum | 1998-10-22 | 1 | -82/+3 |
| | |||||
* | Rename 'locals' argument to top-level interact() function to 'local' | Guido van Rossum | 1998-10-19 | 1 | -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 Rossum | 1998-09-22 | 1 | -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 it | Guido van Rossum | 1998-06-23 | 1 | -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 Rossum | 1998-03-26 | 1 | -45/+45 |
| | |||||
* | Seems I've found a way to fix this. | Guido van Rossum | 1998-01-14 | 1 | -3/+9 |
| | |||||
* | Add Jeff Epler's interact() function. Note that it is broken. | Guido van Rossum | 1997-10-07 | 1 | -0/+52 |
| | | | | (It should probably be withdrawn :-( ) | ||||
* | Checking in new module code.py -- utilities dealing with code objects. | Guido van Rossum | 1997-07-18 | 1 | -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. |