[pypy-commit] pypy py3.6: fix translation

cfbolz pypy.commits at gmail.com
Thu Mar 28 06:31:46 EDT 2019


Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch: py3.6
Changeset: r96375:43bb1c622881
Date: 2019-03-28 11:30 +0100
http://bitbucket.org/pypy/pypy/changeset/43bb1c622881/

Log:	fix translation

diff --git a/pypy/interpreter/astcompiler/optimize.py b/pypy/interpreter/astcompiler/optimize.py
--- a/pypy/interpreter/astcompiler/optimize.py
+++ b/pypy/interpreter/astcompiler/optimize.py
@@ -318,7 +318,7 @@
         return ast.Constant(w_consts, tup.lineno, tup.col_offset)
 
     def _make_starred_tuple_const(self, consts_w, firstelt):
-        w_consts = self.space.newtuple(consts_w)
+        w_consts = self.space.newtuple(consts_w[:])
         return ast.Starred(ast.Constant(
                     w_consts, firstelt.lineno, firstelt.col_offset),
                 ast.Load, firstelt.lineno, firstelt.col_offset)


More information about the pypy-commit mailing list