summaryrefslogtreecommitdiff
path: root/Python/compile.c
AgeCommit message (Expand)AuthorLines
2006-02-27PEP 308 implementation, including minor refdocs and some testcases. ItThomas Wouters-0/+26
2006-02-15Merge ssize_t branch.Martin v. Löwis-9/+13
2006-01-07Fix icc warnings: single bit fields should be unsigned, shadowing local varia...Neal Norwitz-16/+16
2006-01-02Adjust usage of compiler_use_new_block to its return type.Martin v. Löwis-2/+2
2005-12-18fixed compilation with an ordinary C89 compilerFredrik Lundh-2/+1
2005-12-18Fix Armin's bug 1333982. He found it, he didn't created it :-)Neal Norwitz-9/+1
2005-12-18Handle more error conditions with SystemErrorNeal Norwitz-8/+22
2005-12-18Set MemoryError when alloc failsNeal Norwitz-3/+11
2005-12-17Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines,Neal Norwitz-11/+14
2005-12-06Simplify logic for handling import *Neal Norwitz-6/+3
2005-11-24Fix a few more ref leaks. Backport candidateNeal Norwitz-0/+2
2005-11-20Fix a few more memory leaksNeal Norwitz-0/+3
2005-11-19Last batch of ref leaks in new AST code.Neal Norwitz-25/+50
2005-11-16Correctly handle identifiers for anonymous scopes and align genexpr name with...Nick Coghlan-11/+17
2005-11-13Fix a lot of memory and ref leaks in error paths.Neal Norwitz-9/+35
2005-11-13make internal method staticNeal Norwitz-1/+1
2005-10-25Ensure that compiler_exit_scope() is called as necessary to free memoryNeil Schemenauer-10/+18
2005-10-23Fix problem handling EXTENDED_ARGs from SF bug # 1333982Neal Norwitz-1/+30
2005-10-23cleanup a bit and reuse instrsize (instruction size). working towards fixing...Neal Norwitz-30/+24
2005-10-23Remove unnecessary local variable.Neil Schemenauer-3/+2
2005-10-23Fix private name mangling. The symtable also must do mangles so thatNeil Schemenauer-4/+16
2005-10-23Use PyTuple_Pack instead of Py_BuildValue.Neil Schemenauer-2/+1
2005-10-23Fix arigo's funky LOAD_NAME bug: implicit globals inside classes haveNeil Schemenauer-1/+2
2005-10-23Don't stop generating code for import statements after the first "import as"Neil Schemenauer-2/+3
2005-10-21Use <lamba> as the function name for lambdas (matches old compiler).Neil Schemenauer-1/+1
2005-10-21ANSI-C-ify the placement of local var declarations.Armin Rigo-1/+2
2005-10-20Merge ast-branch to headJeremy Hylton-5543/+2810
2005-08-03com_yield_expr(): Squash new compiler wng about unreferenced local.Tim Peters-1/+0
2005-08-02PEP 342 implementation. Per Guido's comments, the generator throw()Phillip J. Eby-12/+64
2005-06-25Fix signedness of various char variables to stop causing a warning under gcc 4.Brett Cannon-1/+1
2005-03-05Allow classes to be defined with empty parentheses. This means thatBrett Cannon-2/+3
2005-03-03Silence a gcc warning about putting in parentheses around && expressions mixedBrett Cannon-5/+6
2005-02-23Preserve sign of -0.0 when result is run through marshal.Raymond Hettinger-2/+4
2005-02-21Document how the pattern recognizer keeps all of its references in bounds.Raymond Hettinger-0/+8
2005-02-20Teach the peepholer to fold unary operations on constants.Raymond Hettinger-0/+62
2005-02-10Remove the set conversion which didn't work with: [] in (0,)Raymond Hettinger-53/+1
2005-02-09Have set conversion replace existing constant if not used elsewhere.Raymond Hettinger-1/+7
2005-02-07Adopt Skip's idea to optimize lists of constants in the contextRaymond Hettinger-7/+13
2005-02-06Transform "x in (1,2,3)" to "x in frozenset([1,2,3])".Raymond Hettinger-1/+48
2005-01-26Do not fold a constant if a large sequence will result.Raymond Hettinger-5/+15
2005-01-07Re-running python with/without the -Qnew flag uses incorrectly optimizedArmin Rigo-6/+3
2005-01-02Teach the peephole optimizer to fold simple constant expressions.Raymond Hettinger-1/+118
2004-11-07SF patch 1025636: Check for NULL returns in compile.c:com_import_stmtJeremy Hylton-4/+14
2004-11-02Maintain peepholer's cumlc invariant by updating the running totalRaymond Hettinger-0/+4
2004-11-01Simplify and future proof NOP counting in the peepholer.Raymond Hettinger-13/+6
2004-10-30Fixed a comment and added another one.Armin Rigo-1/+4
2004-10-30Adopt some peepholer suggestions from Armin Rigo:Raymond Hettinger-15/+20
2004-10-26SF bug #1053819: Segfault in tuple_of_constantsRaymond Hettinger-1/+9
2004-10-24SF bug #1048870: call arg of lambda not updatingRaymond Hettinger-0/+2
2004-09-29Improve error message for augmented assignments to genexps or listcomps.Raymond Hettinger-2/+2