Author: Raffael Tfirst <[email protected]>
Branch: py3.5
Changeset: r84797:f8b7c37f9a15
Date: 2016-05-28 21:39 +0200
http://bitbucket.org/pypy/pypy/changeset/f8b7c37f9a15/
Log: Mark places needed for build_set_unpack
diff --git a/pypy/interpreter/astcompiler/codegen.py
b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -1091,6 +1091,7 @@
elt_count = len(s.elts) if s.elts is not None else 0
self.visit_sequence(s.elts)
self.emit_op_arg(ops.BUILD_SET, elt_count)
+ #ops.BUILD_SET_UNPACK
def visit_Name(self, name):
self.update_position(name.lineno)
diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -1324,6 +1324,7 @@
self.space.call_method(w_set, 'add', w_item)
self.pushvalue(w_set)
+ #BUILD_SET_UNPACK (and undo LOAD permit in codegen visit_starred)
### ____________________________________________________________ ###
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit