Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use C-style comment | Neal Norwitz | 2006-02-05 | 1 | -1/+1 |
| | |||||
* | Improved handling of syntax errors. | Jeremy Hylton | 2006-01-27 | 1 | -35/+74 |
| | | | | | | | | | | | | | | | | | Expand set of errors caught in set_context(). Some new errors, some old error messages changed for consistency. Fixed error checking in generator expression code. The first set of tests were impossible condition given the grammar. In general, the ast code uses REQ() for those sanity checks. Fix some error handling for augmented assignments. As comments in the code explain, set_context() ought to work here, but I got unexpected crashes when I tried it. Should come back to this. Add note to Grammar that yield expression is a special case. Add doctest cases for SyntaxErrors raised by ast.c. | ||||
* | Repair bizarre indentation created by VC 7.1. | Tim Peters | 2006-01-08 | 1 | -1/+1 |
| | |||||
* | alias_for_import_name(): Dueling compiler warnings ;-) | Tim Peters | 2006-01-08 | 1 | -1/+2 |
| | | | | | | | Squash new warnings from VC 7.1 about mixing signed and unsigned types in comparisons. I can see why `len` was changed to size_t here, but don't see why `i` was also changed. Change `i` back to int. | ||||
* | Fix icc warnings: conversion from "long" to "int" may lose significant bits | Neal Norwitz | 2006-01-08 | 1 | -5/+4 |
| | |||||
* | Fix icc warnings: shadowing local variables | Neal Norwitz | 2006-01-07 | 1 | -2/+1 |
| | |||||
* | SF#1391872 | Fredrik Lundh | 2005-12-29 | 1 | -2/+2 |
| | | | | | Floating point literals don't work in non-US locale in 2.5. Patch and new locale tests by Hye-Shik Chang. | ||||
* | Fix SF bug #1072182, problems with signed characters. | Neal Norwitz | 2005-12-19 | 1 | -1/+1 |
| | | | | Most of these can be backported. | ||||
* | Cleanup a bit and make things more consistent. | Neal Norwitz | 2005-12-18 | 1 | -135/+85 |
| | | | | | Don't double check for NULLs and don't initialize if not necessary. No functional changes. | ||||
* | SF patch #1355913, PEP 341 - Unification of try/except and try/finally | Neal Norwitz | 2005-12-17 | 1 | -50/+62 |
| | | | | Modified since ast-arenas was implemented. | ||||
* | Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, | Neal Norwitz | 2005-12-17 | 1 | -541/+250 |
| | | | | simplifies a lot of error handling code, and fixes many memory leaks. | ||||
* | SF #1377897, Bus error in ast | Neal Norwitz | 2005-12-11 | 1 | -0/+5 |
| | | | | | | If a line had multiple semi-colons and ended with a semi-colon, we would loop too many times and access a NULL node. Exit the loop early if there are no more children. | ||||
* | SF #1370197, memory leak - ast_error_finish (in error conditions). | Neal Norwitz | 2005-12-11 | 1 | -2/+6 |
| | |||||
* | Remove unnecessary extern variable | Neal Norwitz | 2005-12-05 | 1 | -2/+0 |
| | |||||
* | Fix a few more memory leaks | Neal Norwitz | 2005-11-20 | 1 | -2/+10 |
| | | | | | Document more info about the benefits of configuring without pymalloc when running valgrind | ||||
* | add more doc | Neal Norwitz | 2005-11-16 | 1 | -1/+22 |
| | |||||
* | Fix another memory leak or two (one real, one potential) | Neal Norwitz | 2005-11-15 | 1 | -1/+2 |
| | |||||
* | Add a note about how to do the memory deallocation a bit. | Neal Norwitz | 2005-11-15 | 1 | -0/+20 |
| | | | | This needs a lot of work. | ||||
* | Fix a whole bunch of potential memory leaks (and some real ones too) | Neal Norwitz | 2005-11-15 | 1 | -81/+206 |
| | | | | in error conditions. | ||||
* | Convert all internal errors from Exception to SystemError | Neal Norwitz | 2005-11-14 | 1 | -19/+17 |
| | | | | Remove an abort() and let a SystemError be raised. | ||||
* | Fix memory leak with bad generator expression | Neal Norwitz | 2005-11-14 | 1 | -3/+10 |
| | |||||
* | remove useless debug print helper. fix a couple of exceptions | Neal Norwitz | 2005-11-13 | 1 | -7/+4 |
| | |||||
* | Refactor code for translating "power" nodes. | Neil Schemenauer | 2005-10-25 | 1 | -91/+95 |
| | |||||
* | Write a separate ast_for_testlist_gexp() function instead of overloading | Neil Schemenauer | 2005-10-25 | 1 | -62/+77 |
| | | | | | ast_for_testlist(). Also, write a ast_for_class_bases() function and in the process fix a memory leak. Add some assertions. | ||||
* | Add an assert. | Neil Schemenauer | 2005-10-23 | 1 | -0/+1 |
| | |||||
* | ANSI-C-ify the placement of local var declarations. | Armin Rigo | 2005-10-21 | 1 | -6/+8 |
| | |||||
* | Oops, "=" is not a comparison operator | Neal Norwitz | 2005-10-21 | 1 | -1/+0 |
| | |||||
* | Merge ast-branch to head | Jeremy Hylton | 2005-10-20 | 1 | -0/+3114 |
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. |