Author: Raffael Tfirst <raffael.tfi...@gmail.com> Branch: py3.5 Changeset: r85416:bab192d4f0e9 Date: 2016-06-27 21:54 +0200 http://bitbucket.org/pypy/pypy/changeset/bab192d4f0e9/
Log: Temporary implementation for map_unpack_with_call (checks missing) diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py --- a/pypy/interpreter/pyopcode.py +++ b/pypy/interpreter/pyopcode.py @@ -1353,20 +1353,11 @@ w_sum = self.unpack_helper(itemcount, next_instr) self.pushvalue(self.space.newlist(w_sum)) - #TODO - #get intersection, store as setentry def BUILD_MAP_UNPACK_WITH_CALL(self, itemcount, next_instr): - w_sum = self.space.newdict() num_maps = itemcount & 0xff - function_location = (itemcount >> 8) & 0xff - for i in range(num_maps, 0, -1): - arg = self.space.peek(i) - # intersection = _dictviews_and(w_sum, arg) #check after bugs are done - self.space.call_method(w_sum, 'update', self.space.peek(i)) - while itemcount != 0: - self.popvalue() - itemcount -= 1 - self.pushvalue(w_sum) + w_dict = self.space.newdict() + import pdb; pdb.set_trace() + self.BUILD_MAP_UNPACK(num_maps, next_instr) def BUILD_MAP_UNPACK(self, itemcount, next_instr): w_dict = self.space.newdict() _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit