Author: Raffael Tfirst <raffael.tfi...@gmail.com> Branch: py3.5 Changeset: r84886:2e6c87aa86c2 Date: 2016-06-02 23:19 +0200 http://bitbucket.org/pypy/pypy/changeset/2e6c87aa86c2/
Log: Create other ops diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py --- a/pypy/interpreter/pyopcode.py +++ b/pypy/interpreter/pyopcode.py @@ -1324,8 +1324,29 @@ self.space.call_method(w_set, 'add', w_item) self.pushvalue(w_set) - #BUILD_SET_UNPACK (also as opcode) + def BUILD_SET_UNPACK(self, itemcount, next_instr): + w_sum = self.space.newset() + for i in range(itemcount): + self.space.updateset() #implement? + w_item = self.popvalue() + self.space.call_method(w_set, 'add', w_item) + self.pushvalue(w_set) + def BUILD_TUPLE_UNPACK(self, itemcount, next_instr): + w_sum = self.space.newset() + self.pushvalue(w_set) + + def BUILD_LIST_UNPACK(self, itemcount, next_instr): + w_sum = self.space.newset() + self.pushvalue(w_set) + + def BUILD_MAP_UNPACK_WITH_CALL(self, itemcount, next_instr): + w_sum = self.space.newset() + self.pushvalue(w_set) + + def BUILD_MAP_UNPACK(self, itemcount, next_instr): + w_sum = self.space.newset() + self.pushvalue(w_set) ### ____________________________________________________________ ### class ExitFrame(Exception): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit