Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Whitespace normalization. | Tim Peters | 2005-12-25 | 3 | -814/+814 |
| | |||||
* | Fix SF bug #1072182, problems with signed characters. | Neal Norwitz | 2005-12-19 | 2 | -2/+3 |
| | | | | Most of these can be backported. | ||||
* | Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter. | Neal Norwitz | 2005-12-18 | 1 | -0/+6 |
| | | | | Needs backport. | ||||
* | Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, | Neal Norwitz | 2005-12-17 | 1 | -5/+10 |
| | | | | simplifies a lot of error handling code, and fixes many memory leaks. | ||||
* | When regenerating files like Python-ast.h, take care that the generated | Armin Rigo | 2005-12-14 | 1 | -3/+2 |
| | | | | | | | comment based on 'sys.args[0]' does not depend on the path. For Python builds from a remote directory ("/path/to/configure; make") the previous logic used to include the "/path/to" portion in Python-ast.h. Then svn would consider this file to be locally modified. | ||||
* | SF #1373150, diffs in working copy after a build | Neal Norwitz | 2005-12-11 | 1 | -1/+5 |
| | | | | | | | | Strip off leading dots and slash so the generated files are the same regardless of whether you configure in the checkout directory or build. If anyone configures in a different directory, we might want a cleaner approach using os.path.*(). Hopefully this is good enough. | ||||
* | Fix some more memory leaks. | Neal Norwitz | 2005-11-16 | 1 | -6/+11 |
| | | | | | | Call error_ret() in decode_str(). It was called in some other places, but seemed inconsistent. It is safe to call PyTokenizer_Free() after calling error_ret(). | ||||
* | Prevent unlikely memory leak, tok should always be freed when parsetok() returns | Neal Norwitz | 2005-11-15 | 1 | -0/+1 |
| | |||||
* | Thou shalt not lie, there are really 5 types now | Neal Norwitz | 2005-11-15 | 1 | -1/+1 |
| | |||||
* | Whoops, checkin consistent versions of *all* files to stop polluting | Neal Norwitz | 2005-11-13 | 1 | -6/+80 |
| | | | | a bunch of names | ||||
* | Prevent name pollution by making lots of internal functions static. | Neal Norwitz | 2005-11-13 | 1 | -4/+4 |
| | |||||
* | Remove .cvsignore files, as they live in svn:ignore | Martin v. Löwis | 2005-10-30 | 1 | -6/+0 |
| | | | | properties now. | ||||
* | Use PyErr_NoMemory() instead of rolling our own. | Neal Norwitz | 2005-10-23 | 1 | -7/+5 |
| | | | | Get rid of "int i" unused warnings from Python-ast.c which we are generating. | ||||
* | Free coding spec (cs) if there was an error to prevent mem leak. Maybe ↵ | Neal Norwitz | 2005-10-21 | 1 | -0/+3 |
| | | | | backport candidate | ||||
* | Merge ast-branch to head | Jeremy Hylton | 2005-10-20 | 7 | -4/+1967 |
| | | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests. | ||||
* | - Fix segfault with invalid coding. | Neal Norwitz | 2005-10-02 | 3 | -2/+12 |
| | | | | | | | - SF Bug #772896, unknown encoding results in MemoryError, which is not helpful I will only backport the segfault fix. I'll let Anthony decide if he wants the other changes backported. I will do the backport if asked. | ||||
* | Apply SF patch #1101726: Fix buffer overrun in tokenizer.c when a source file | Walter Dörwald | 2005-07-12 | 1 | -27/+45 |
| | | | | with a PEP 263 encoding declaration results in long decoded line. | ||||
* | In a threads-disabled build, typing Ctrl-C into a raw_input() crashed, | Michael W. Hudson | 2005-04-07 | 1 | -0/+4 |
| | | | | | | | | | because (essentially) I didn't realise that PY_BEGIN/END_ALLOW_THREADS actually expanded to nothing under a no-threads build, so if you somehow NULLed out the threadstate (e.g. by calling PyThread_SaveThread) it would stay NULLed when you return to Python. Argh! Backport candidate. | ||||
* | Patch #802188: better parser error message for non-EOL following line cont. | Martin v. Löwis | 2005-03-03 | 1 | -1/+1 |
| | |||||
* | Patch #975056 - fixes for restartable signals on *BSD. In addition, | Anthony Baxter | 2004-10-13 | 1 | -13/+4 |
| | | | | a few remaining calls to signal() were converted to PyOS_setsig(). | ||||
* | SF #941229: Decode source code with sys.stdin.encoding in interactive | Hye-Shik Chang | 2004-08-04 | 1 | -0/+61 |
| | | | | | | | modes like non-interactive modes. This allows for non-latin-1 users to write unicode strings directly and sets Japanese users free from weird manual escaping <wink> in shift_jis environments. (Reviewed by Martin v. Loewis) | ||||
* | PEP-0318, @decorator-style. In Guido's words: | Anthony Baxter | 2004-08-02 | 1 | -0/+2 |
| | | | | | "@ seems the syntax that everybody can hate equally" Implementation by Mark Russell, from SF #979728. | ||||
* | PyThreadState_Swap(NULL) didn't do what I thought it did. Fixes | Michael W. Hudson | 2004-07-08 | 1 | -1/+1 |
| | | | | [ 987287 ] Python 2.4a1, interpreter hanging on Keyboard Interrupt | ||||
* | Pass the flags along, rather than ignoring them. Backport candidate | Neal Norwitz | 2004-07-08 | 1 | -1/+1 |
| | |||||
* | "#if WITH_THREAD" is incorrect; must be #ifdef instead; WITH_THREAD | Tim Peters | 2004-07-07 | 1 | -4/+4 |
| | | | | isn't always set to an integer value when it's defined. | ||||
* | This closes patch: | Michael W. Hudson | 2004-07-07 | 1 | -3/+38 |
| | | | | | | | | | | | | | | | | | [ 960406 ] unblock signals in threads although the changes do not correspond exactly to any patch attached to that report. Non-main threads no longer have all signals masked. A different interface to readline is used. The handling of signals inside calls to PyOS_Readline is now rather different. These changes are all a bit scary! Review and cross-platform testing much appreciated. | ||||
* | [Patch #974633] Check PyObject_MALLOC return for error | Andrew M. Kuchling | 2004-06-29 | 1 | -0/+4 |
| | |||||
* | Fix for SF 780407. | Guido van Rossum | 2004-03-20 | 1 | -1/+1 |
| | | | | | Change %08l to %p to print a pointer. Will backport to 2.3. | ||||
* | Remove support for --without-universal-newlines (see PEP 11). | Skip Montanaro | 2004-02-07 | 1 | -2/+0 |
| | |||||
* | Remove a "temporary" piece of code that was probably unneeded since | Guido van Rossum | 2003-12-15 | 1 | -7/+0 |
| | | | | mid 1990. Remove an untrue XXX comment. | ||||
* | Talk about old code: removed a reference to THINK_C. | Jack Jansen | 2003-11-20 | 1 | -30/+0 |
| | |||||
* | Getting rid of all the code inside #ifdef macintosh too. | Jack Jansen | 2003-11-20 | 3 | -28/+0 |
| | |||||
* | Getting rid of support for the ancient Apple MPW compiler. | Jack Jansen | 2003-11-19 | 2 | -24/+0 |
| | |||||
* | SF bug 751956: graminit.[ch] don't build on windows | Tim Peters | 2003-06-17 | 1 | -1/+4 |
| | | | | | | A change from Duncan Booth, to deal with changes in the way pgen gets built. Note that graminit.[ch] aren't normally built on Windows (they're obtained from CVS). | ||||
* | Patch #734231: Update RiscOS support. In particular, correct | Martin v. Löwis | 2003-05-10 | 1 | -0/+4 |
| | | | | riscospath.extsep, and use os.extsep throughout. | ||||
* | Patch #708495: Port more stuff to OpenVMS. | Martin v. Löwis | 2003-05-03 | 1 | -0/+8 |
| | |||||
* | Remove file that was moved to ../Include | Guido van Rossum | 2003-04-29 | 1 | -18/+0 |
| | |||||
* | Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to | Guido van Rossum | 2003-04-17 | 3 | -5/+34 |
| | | | | | | work. This includes some more code that used to be part of pgen in the main parser; I'm okay with that. I'll see if the Windows build needs work next. | ||||
* | compile_atom(): Neal's last checkin removing the setting of i broke | Barry Warsaw | 2003-02-28 | 1 | -0/+3 |
| | | | | | | the build, so I'm restoring it. I'm not sure what Neal's intent was, since the line following the one he removed was "REQN(i, 1)" so i is obviously used. ;) | ||||
* | Remove setting i since it isn't used. Found in unrelated bug 690012. | Neal Norwitz | 2003-02-28 | 1 | -3/+0 |
| | |||||
* | Add URL for PEP to the source code encoding warning. | Marc-André Lemburg | 2003-02-17 | 1 | -6/+12 |
| | | | | | | Remove the usage of PyErr_WarnExplicit() since this could cause sensitive information from the source files to appear in e.g. log files. | ||||
* | - Finally fixed the bug in compile() and exec where a string ending | Guido van Rossum | 2003-02-13 | 1 | -0/+9 |
| | | | | | | | | | 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.) | ||||
* | patch 680474 that fixes bug 679880: compile/eval/exec refused utf-8 bom | Just van Rossum | 2003-02-09 | 1 | -2/+2 |
| | | | | mark. Added unit test. | ||||
* | Fix [ 665014 ] files with long lines and an encoding crash. | Mark Hammond | 2003-01-14 | 1 | -1/+2 |
| | | | | | Ensure that the 'size' arg is correctly passed to the encoding reader to prevent buffer overflows. | ||||
* | Constify filenames and scripts. Fixes #651362. | Martin v. Löwis | 2002-12-11 | 3 | -12/+14 |
| | |||||
* | Fix compiler warning on HP-UX. | Neal Norwitz | 2002-11-02 | 1 | -2/+2 |
| | | | | Cast param to isalnum() to int. | ||||
* | Change PyOS_Readline declaration to match the recent change to myreadline.c | Skip Montanaro | 2002-10-27 | 1 | -2/+2 |
| | | | | | | (see Patch 512981). I changed stdin to sys_stdin in the body of the function, but did not change stderr to sys_stdout, though I suspect that may be the correct course. I don't know the code involved well enough to judge. | ||||
* | Patch #512981: Update readline input stream on sys.stdin/out change. | Martin v. Löwis | 2002-10-26 | 2 | -10/+22 |
| | |||||
* | Removed reliance on gcc/C99 extension. | Tim Peters | 2002-09-03 | 1 | -1/+3 |
| | |||||
* | Ignore encoding declarations inside strings. Fixes #603509. | Martin v. Löwis | 2002-09-03 | 2 | -1/+17 |
| |