Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(15)

Unified Diff: Lib/dis.py

Issue 20103: http://bugs.python.org/issue2459 -- speed up loops SVN Base: http://svn.python.org/view/*checkout*/python/trunk/
Patch Set: Created 9 months, 1 week ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: Lib/dis.py
===================================================================
--- Lib/dis.py (revision 70087)
+++ Lib/dis.py (working copy)
@@ -182,7 +182,8 @@
"""
byte_increments = [ord(c) for c in code.co_lnotab[0::2]]
- line_increments = [ord(c) for c in code.co_lnotab[1::2]]
+ line_increments = [c if c < 128 else c - 256
+ for c in map(ord, code.co_lnotab[1::2])]
lastlineno = None
lineno = code.co_firstlineno

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497