[pypy-commit] pypy speedup-list-comprehension: use len_w
fijal
noreply at buildbot.pypy.org
Sun Feb 26 05:02:45 CET 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: speedup-list-comprehension
Changeset: r52910:8d47eca2be46
Date: 2012-02-25 20:01 -0800
http://bitbucket.org/pypy/pypy/changeset/8d47eca2be46/
Log: use len_w
diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -718,7 +718,7 @@
# value
last_val = self.popvalue()
try:
- lgt = self.space.int_w(self.space.len(last_val))
+ lgt = self.space.len_w(last_val)
except OperationError, e:
if e.async(space):
raise
More information about the pypy-commit
mailing list