Author: Carl Friedrich Bolz <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit