Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: py3k Changeset: r53711:460e67abd3c7 Date: 2012-03-16 00:17 +0100 http://bitbucket.org/pypy/pypy/changeset/460e67abd3c7/
Log: Translation fixes in the py3k compiler. 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 @@ -288,8 +288,9 @@ def _visit_kwonlydefaults(self, args): defaults = 0 - for kwonly, default in zip(args.kwonlyargs, args.kw_defaults): + for i, default in enumerate(args.kw_defaults): if default: + kwonly = args.kwonlyargs[i] self.load_const(self.space.wrap(kwonly.arg)) default.walkabout(self) defaults += 1 diff --git a/pypy/interpreter/astcompiler/symtable.py b/pypy/interpreter/astcompiler/symtable.py --- a/pypy/interpreter/astcompiler/symtable.py +++ b/pypy/interpreter/astcompiler/symtable.py @@ -510,6 +510,7 @@ def _visit_annotations(self, func): args = func.args + assert isinstance(args, ast.arguments) if args.args: self._visit_arg_annotations(args.args) if args.varargannotation: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit