[pypy-commit] pypy default: Pass iterable instead of iterator to space.iteriterable() (both works).

mjacob pypy.commits at gmail.com
Sat Feb 13 09:14:10 EST 2016


Author: Manuel Jacob <me at manueljacob.de>
Branch: 
Changeset: r82210:5c06f73f7e1f
Date: 2016-02-13 14:43 +0100
http://bitbucket.org/pypy/pypy/changeset/5c06f73f7e1f/

Log:	Pass iterable instead of iterator to space.iteriterable() (both
	works).

diff --git a/pypy/objspace/std/dictmultiobject.py b/pypy/objspace/std/dictmultiobject.py
--- a/pypy/objspace/std/dictmultiobject.py
+++ b/pypy/objspace/std/dictmultiobject.py
@@ -1419,8 +1419,7 @@
         return space.len(self.w_dict)
 
 def _all_contained_in(space, w_dictview, w_other):
-    w_iter = space.iter(w_dictview)
-    for w_item in space.iteriterable(w_iter):
+    for w_item in space.iteriterable(w_dictview):
         if not space.contains_w(w_other, w_item):
             return space.w_False
     return space.w_True


More information about the pypy-commit mailing list