summaryrefslogtreecommitdiff
path: root/Python/ast.c
Commit message (Collapse)AuthorAgeFilesLines
* Repair bizarre indentation created by VC 7.1.Tim Peters2006-01-081-1/+1
|
* alias_for_import_name(): Dueling compiler warnings ;-)Tim Peters2006-01-081-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 bitsNeal Norwitz2006-01-081-5/+4
|
* Fix icc warnings: shadowing local variablesNeal Norwitz2006-01-071-2/+1
|
* SF#1391872Fredrik Lundh2005-12-291-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 Norwitz2005-12-191-1/+1
| | | | Most of these can be backported.
* Cleanup a bit and make things more consistent.Neal Norwitz2005-12-181-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/finallyNeal Norwitz2005-12-171-50/+62
| | | | Modified since ast-arenas was implemented.
* Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,Neal Norwitz2005-12-171-541/+250
| | | | simplifies a lot of error handling code, and fixes many memory leaks.
* SF #1377897, Bus error in astNeal Norwitz2005-12-111-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 Norwitz2005-12-111-2/+6
|
* Remove unnecessary extern variableNeal Norwitz2005-12-051-2/+0
|
* Fix a few more memory leaksNeal Norwitz2005-11-201-2/+10
| | | | | Document more info about the benefits of configuring without pymalloc when running valgrind
* add more docNeal Norwitz2005-11-161-1/+22
|
* Fix another memory leak or two (one real, one potential)Neal Norwitz2005-11-151-1/+2
|
* Add a note about how to do the memory deallocation a bit.Neal Norwitz2005-11-151-0/+20
| | | | This needs a lot of work.
* Fix a whole bunch of potential memory leaks (and some real ones too)Neal Norwitz2005-11-151-81/+206
| | | | in error conditions.
* Convert all internal errors from Exception to SystemErrorNeal Norwitz2005-11-141-19/+17
| | | | Remove an abort() and let a SystemError be raised.
* Fix memory leak with bad generator expressionNeal Norwitz2005-11-141-3/+10
|
* remove useless debug print helper. fix a couple of exceptionsNeal Norwitz2005-11-131-7/+4
|
* Refactor code for translating "power" nodes.Neil Schemenauer2005-10-251-91/+95
|
* Write a separate ast_for_testlist_gexp() function instead of overloadingNeil Schemenauer2005-10-251-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 Schemenauer2005-10-231-0/+1
|
* ANSI-C-ify the placement of local var declarations.Armin Rigo2005-10-211-6/+8
|
* Oops, "=" is not a comparison operatorNeal Norwitz2005-10-211-1/+0
|
* Merge ast-branch to headJeremy Hylton2005-10-201-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.