summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_dis.py
Commit message (Collapse)AuthorAgeFilesLines
* use assert[Not]In where appropriateEzio Melotti2010-01-231-2/+2
|
* Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} withJeffrey Yasskin2009-02-281-19/+17
| | | | | | POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
* Issue #2183: Simplify and optimize bytecode for list comprehensions.Antoine Pitrou2008-12-171-20/+16
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* Clean up imports.Collin Winter2007-04-041-4/+4
|
* Whitespace normalization.Tim Peters2006-07-181-4/+4
|
* Bug #1512814, Fix incorrect lineno's when code within a functionNeal Norwitz2006-07-161-0/+24
| | | | had more than 255 blank lines. Byte codes need to go first, line #s second.
* SF bug 1442442: LIST_APPEND optimization got lost in the AST merge.Neal Norwitz2006-03-031-21/+19
| | | | Add it back.
* test_bug_1333982(): This one must fail under -O.Tim Peters2005-12-251-1/+4
| | | | All the --all test pass using -O on WinXP now.
* Fix Armin's bug 1333982. He found it, he didn't created it :-)Neal Norwitz2005-12-181-0/+40
| | | | | | | | | | This code generated a C assertion: assert 1, ([s for s in x] + [s for s in x]) pass assert was completely broken, it needed to use the proper block. compiler_use_block() is now no longer used, so remove it.
* SF Patch #1013667: Cleanup Peepholer OutputRaymond Hettinger2004-08-231-2/+0
| | | | | | | | | * Make a pass to eliminate NOPs. Produce code that is more readable, more compact, and a tiny bit faster. Makes the peepholer more flexible in the scope of allowable transformations. * With Guido's okay, bumped up the magic number so that this patch gets widely exercised before the alpha goes out.
* Delete comment my last checkin rendered obsolete.Michael W. Hudson2003-04-301-2/+0
| | | | | I should also not that my last checkin did stuff that made failures give more helpful information.
* Use Tim's suggestion to fixMichael W. Hudson2003-04-291-14/+51
| | | | | | | | | [ 708901 ] Lineno calculation sometimes broken A one line patch to compile.c and a rather-more-than-one-line patch to test_dis. Hey ho. Possibly a backport candidate -- tho' lnotab is less used in 2.2...
* This test relied on significant trailing whitespace in a string literal.Tim Peters2003-03-071-7/+12
| | | | Evil.
* simple test case for dis moduleSkip Montanaro2003-02-271-0/+53