Author: Philip Jenvey <[email protected]>
Branch: length-hint
Changeset: r58845:e75217df4059
Date: 2012-11-12 12:31 -0800
http://bitbucket.org/pypy/pypy/changeset/e75217df4059/

Log:    unnecessary w/ the restored list init special cases

diff --git a/pypy/module/pypyjit/test_pypy_c/model.py 
b/pypy/module/pypyjit/test_pypy_c/model.py
--- a/pypy/module/pypyjit/test_pypy_c/model.py
+++ b/pypy/module/pypyjit/test_pypy_c/model.py
@@ -104,9 +104,6 @@
                     yield subchunk
 
     def compute_ids(self, ids):
-        # XXX: valid?
-        if not self.code:
-            return
         #
         # 1. compute the ids of self, i.e. the outer function
         id2opcodes = find_ids(self.code)
diff --git a/pypy/objspace/std/test/test_liststrategies.py 
b/pypy/objspace/std/test/test_liststrategies.py
--- a/pypy/objspace/std/test/test_liststrategies.py
+++ b/pypy/objspace/std/test/test_liststrategies.py
@@ -580,6 +580,7 @@
 
         w_set = W_SetObject(self.space)
         _initialize_set(self.space, w_set, w_l)
+        w_set.iter = None # make sure fast path is used
 
         w_l2 = W_ListObject(space, [])
         space.call_method(w_l2, "__init__", w_set)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to