474 Commits (889bb2969d00a548279c7e4dd237c23b100548e2)

Author SHA1 Message Date
Neal Norwitz adb69fcdff Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, 21 years ago
Neal Norwitz 28b32ac6bc Simplify logic for handling import * 21 years ago
Neal Norwitz 3715c3e576 Fix a few more ref leaks. Backport candidate 21 years ago
Neal Norwitz 7bcabc60a3 Fix a few more memory leaks 21 years ago
Neal Norwitz 4737b2348b Last batch of ref leaks in new AST code. 21 years ago
Nick Coghlan 944d3eb154 Correctly handle identifiers for anonymous scopes and align genexpr name with symtable.c 21 years ago
Neal Norwitz b6fc9df8fc Fix a lot of memory and ref leaks in error paths. 21 years ago
Neal Norwitz 2744c6cc35 make internal method static 21 years ago
Neil Schemenauer c396d9edd6 Ensure that compiler_exit_scope() is called as necessary to free memory 21 years ago
Neal Norwitz f1d50684c6 Fix problem handling EXTENDED_ARGs from SF bug # 1333982 21 years ago
Neal Norwitz 7d37f2ff40 cleanup a bit and reuse instrsize (instruction size). working towards fixing problems with EXTENDED_ARG 21 years ago
Neil Schemenauer dad06a159e Remove unnecessary local variable. 21 years ago
Neil Schemenauer 8b528b28f1 Fix private name mangling. The symtable also must do mangles so that 21 years ago
Neil Schemenauer 3a44aaa30f Use PyTuple_Pack instead of Py_BuildValue. 21 years ago
Neil Schemenauer d403c45386 Fix arigo's funky LOAD_NAME bug: implicit globals inside classes have 21 years ago
Neil Schemenauer ac699efad8 Don't stop generating code for import statements after the first "import as" 21 years ago
Neil Schemenauer ccd19218bc Use <lamba> as the function name for lambdas (matches old compiler). 21 years ago
Armin Rigo 3144130217 ANSI-C-ify the placement of local var declarations. 21 years ago
Jeremy Hylton 3e0055f8c6 Merge ast-branch to head 21 years ago
Tim Peters ea9dcdc062 com_yield_expr(): Squash new compiler wng about unreferenced local. 21 years ago
Phillip J. Eby 0d6615fd29 PEP 342 implementation. Per Guido's comments, the generator throw() 21 years ago
Brett Cannon c9371d4a1b Fix signedness of various char variables to stop causing a warning under gcc 4. 21 years ago
Brett Cannon 409d8f2ebd Allow classes to be defined with empty parentheses. This means that 22 years ago
Brett Cannon 5dc8ced4a8 Silence a gcc warning about putting in parentheses around && expressions mixed 22 years ago
Raymond Hettinger e63a078635 Preserve sign of -0.0 when result is run through marshal. 22 years ago
Raymond Hettinger 07359a7fed Document how the pattern recognizer keeps all of its references in bounds. 22 years ago
Raymond Hettinger 80121491e0 Teach the peepholer to fold unary operations on constants. 22 years ago
Raymond Hettinger b615bf0681 Remove the set conversion which didn't work with: [] in (0,) 22 years ago
Raymond Hettinger 5e547969f8 Have set conversion replace existing constant if not used elsewhere. 22 years ago
Raymond Hettinger 7fcb7869ba Adopt Skip's idea to optimize lists of constants in the context 22 years ago
Raymond Hettinger a164574937 Transform "x in (1,2,3)" to "x in frozenset([1,2,3])". 22 years ago
Raymond Hettinger 9feb267caf Do not fold a constant if a large sequence will result. 22 years ago
Armin Rigo 664b43b3f4 Re-running python with/without the -Qnew flag uses incorrectly optimized 22 years ago
Raymond Hettinger c34f8673a1 Teach the peephole optimizer to fold simple constant expressions. 22 years ago
Jeremy Hylton 16b047904c SF patch 1025636: Check for NULL returns in compile.c:com_import_stmt 22 years ago
Raymond Hettinger 5dec096e6a Maintain peepholer's cumlc invariant by updating the running total 22 years ago
Raymond Hettinger 099ecfbec9 Simplify and future proof NOP counting in the peepholer. 22 years ago
Armin Rigo d7bcf4deb1 Fixed a comment and added another one. 22 years ago
Raymond Hettinger effb3931ea Adopt some peepholer suggestions from Armin Rigo: 22 years ago
Raymond Hettinger 23109ef11e SF bug #1053819: Segfault in tuple_of_constants 22 years ago
Raymond Hettinger 9047c8f73d SF bug #1048870: call arg of lambda not updating 22 years ago
Raymond Hettinger fec0c466ad Improve error message for augmented assignments to genexps or listcomps. 22 years ago
Raymond Hettinger 8ffc1410e2 Fix two erroneous error messages. 22 years ago
Raymond Hettinger 06cc973d06 Replaced a test with an assertion. 22 years ago
Raymond Hettinger 2c31a058eb SF patch #1031667: Fold tuples of constants into a single constant 22 years ago
Anthony Baxter 1a4ddaecc7 SF patch #1007189, multi-line imports, for instance: 22 years ago
Raymond Hettinger 1792bfbf90 Bypass peepholing of code with lineno tables having intervals >= 255. 22 years ago
Raymond Hettinger 65d3c0537a Fix typo in comment and add clarification. 22 years ago
Raymond Hettinger ef0a82b682 Simplify chains of conditional jumps. 22 years ago
Raymond Hettinger a12fa148d7 Incorporate review comments courtesy of Neal Norwitz: 22 years ago