[pypy-commit] pypy speedup-unpackiterable: don't try to be too smart - by hand write the indirection (breaks translation)
fijal
noreply at buildbot.pypy.org
Tue Aug 21 21:05:33 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: speedup-unpackiterable
Changeset: r56780:32461790c4c5
Date: 2012-08-21 21:05 +0200
http://bitbucket.org/pypy/pypy/changeset/32461790c4c5/
Log: don't try to be too smart - by hand write the indirection (breaks
translation)
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
@@ -113,8 +113,7 @@
getitem_str delitem length \
clear w_keys values \
items iterkeys itervalues iteritems setdefault \
- popitem listview_str listview_int \
- view_as_kwargs".split()
+ popitem listview_str listview_int".split()
def make_method(method):
def f(self, *args):
@@ -122,6 +121,9 @@
f.func_name = method
return f
+ def view_as_kwargs(self):
+ return self.strategy.view_as_kwargs(self)
+
for method in dict_methods:
setattr(W_DictMultiObject, method, make_method(method))
More information about the pypy-commit
mailing list