[pypy-commit] pypy speedup-unpackiterable: Two complains

arigo noreply at buildbot.pypy.org
Mon Aug 13 16:14:32 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: speedup-unpackiterable
Changeset: r56720:6768badf9bee
Date: 2012-08-13 16:14 +0200
http://bitbucket.org/pypy/pypy/changeset/6768badf9bee/

Log:	Two complains

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -879,7 +879,7 @@
         while True:
             unpackiterable_driver.jit_merge_point(tp=tp,
                                                   w_iterator=w_iterator,
-                                                  w_item=w_item,
+                                                  w_item=w_item, <-- why?
                                                   items=items)
             try:
                 w_item = self.next(w_iterator)
diff --git a/pypy/module/itertools/test/test_itertools.py b/pypy/module/itertools/test/test_itertools.py
--- a/pypy/module/itertools/test/test_itertools.py
+++ b/pypy/module/itertools/test/test_itertools.py
@@ -93,7 +93,7 @@
 
         r = itertools.repeat('a', 15)
         r.next()
-        assert len(r) == 14
+        assert len(r) == 14     <-- no, python 2.7 does not have len(r)
         raises(TypeError, "len(itertools.repeat('xkcd'))")
 
     def test_takewhile(self):


More information about the pypy-commit mailing list