498 Commits (41bade96a4d1dcd35bbba79c2eabe052d02756a4)

Author SHA1 Message Date
Raymond Hettinger 5e547969f8 Have set conversion replace existing constant if not used elsewhere. 21 years ago
Raymond Hettinger 7fcb7869ba Adopt Skip's idea to optimize lists of constants in the context 21 years ago
Raymond Hettinger a164574937 Transform "x in (1,2,3)" to "x in frozenset([1,2,3])". 21 years ago
Raymond Hettinger 9feb267caf Do not fold a constant if a large sequence will result. 21 years ago
Armin Rigo 664b43b3f4 Re-running python with/without the -Qnew flag uses incorrectly optimized 21 years ago
Raymond Hettinger c34f8673a1 Teach the peephole optimizer to fold simple constant expressions. 21 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
Raymond Hettinger fd2d1f7870 SF Patch #1013667: Cleanup Peepholer Output 22 years ago
Raymond Hettinger 1a7892924f Move the bytecode optimizer upstream so that its results are saved in pyc 22 years ago
Michael W. Hudson 0ccff074cd This is Mark Russell's patch: 22 years ago
Brett Cannon add33601c2 Correct the order of application for decorators. Meant to be bottom-up and not 22 years ago
Brett Cannon 31f8350f43 Fix incorrect comment for (struct compiling)->c_cellvars 22 years ago
Tim Peters d459f536c5 code_new(): Wouldn't compile on Windows, because of gcc'ism. 22 years ago
Michael W. Hudson 6093462739 Fix bug 22 years ago
Raymond Hettinger 98bd1814e2 SF bug #1004088: big code objects (>64K) may be optimized incorrectly 22 years ago
Michael W. Hudson e51c4f9a10 Revert 2.312; turns out interning the file name did do some good (reducing 22 years ago
Michael W. Hudson 782d8ffb42 Don't intern the filename of a file being compiled. 22 years ago
Anthony Baxter 4e7785aa4f fix for @decorators under a debug build. 22 years ago
Anthony Baxter c2a5a63654 PEP-0318, @decorator-style. In Guido's words: 22 years ago
Raymond Hettinger 11a70c79b9 Upgrade None assignment SyntaxWarning to a SyntaxError. 22 years ago
Tim Peters db5860b7c7 optimize_code(): Repaired gross error in new special-casing for None. 22 years ago
Raymond Hettinger 76d962d700 Treat None as a constant. 22 years ago
Neal Norwitz 93468eac72 Remove unused macros in .c files 22 years ago
Raymond Hettinger 43ea47ff06 Move NOP to end of code transformation. 22 years ago
Raymond Hettinger 9c18e81fb2 Install two code generation optimizations that depend on NOP. 22 years ago
Martin v. Löwis 737ea82a5a Patch #774665: Make Python LC_NUMERIC agnostic. 22 years ago
Raymond Hettinger 354433a59d SF patch #872326: Generator expression implementation 22 years ago
Armin Rigo 80d937e986 Fix for line events in the case: 22 years ago
Raymond Hettinger ff5bc50bb0 Improve byte coding for multiple assignments. 22 years ago
Raymond Hettinger dd80f76265 SF patch #910929: Optimize list comprehensions 22 years ago
Guido van Rossum 6c9e130524 - Removed FutureWarnings related to hex/oct literals and conversions 23 years ago
Martin v. Löwis dd7eb146a8 Patch #792869: Clarify error message for parameters declared global, 23 years ago
Raymond Hettinger 8ae4689657 Simplify and speedup uses of Py_BuildValue(): 23 years ago
Jeremy Hylton 9832613beb Fix SF bug [ 808594 ] leak on lambda with duplicate arguments error. 23 years ago
Raymond Hettinger cc1798e0c0 Improve the leak fix so that PyTuple_New is only called when needed. 23 years ago