[pypy-commit] pypy default: remove inefficient implementation of IntDictStrategy.w_keys and rely on default

cfbolz noreply at buildbot.pypy.org
Sat Apr 7 15:04:10 CEST 2012


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: 
Changeset: r54221:057f65a41c8e
Date: 2012-04-05 22:10 +0200
http://bitbucket.org/pypy/pypy/changeset/057f65a41c8e/

Log:	remove inefficient implementation of IntDictStrategy.w_keys and rely
	on default implementation

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
@@ -563,10 +563,7 @@
     def listview_int(self, w_dict):
         return self.unerase(w_dict.dstorage).keys()
 
-    def w_keys(self, w_dict):
-        # XXX there is no space.newlist_int yet
-        space = self.space
-        return space.call_function(space.w_list, w_dict)
+    # XXX there is no space.newlist_int yet to implement w_keys more efficiently
 
 class IntIteratorImplementation(_WrappedIteratorMixin, IteratorImplementation):
     pass


More information about the pypy-commit mailing list