summaryrefslogtreecommitdiff
path: root/Python/compile.c
AgeCommit message (Expand)AuthorLines
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
2004-09-29Fix two erroneous error messages.Raymond Hettinger-2/+2
2004-09-28Replaced a test with an assertion.Raymond Hettinger-3/+1
2004-09-22SF patch #1031667: Fold tuples of constants into a single constantRaymond Hettinger-11/+91
2004-08-31SF patch #1007189, multi-line imports, for instance:Anthony Baxter-31/+47
2004-08-25Bypass peepholing of code with lineno tables having intervals >= 255.Raymond Hettinger-4/+8
2004-08-25Fix typo in comment and add clarification.Raymond Hettinger-1/+2
2004-08-25Simplify chains of conditional jumps.Raymond Hettinger-2/+25
2004-08-24Incorporate review comments courtesy of Neal Norwitz:Raymond Hettinger-6/+8
2004-08-23SF Patch #1013667: Cleanup Peepholer OutputRaymond Hettinger-35/+100
2004-08-18Move the bytecode optimizer upstream so that its results are saved in pycRaymond Hettinger-3/+6
2004-08-17This is Mark Russell's patch:Michael W. Hudson-21/+19