# HG changeset patch # User Paul Boddie # Date 1477413537 -7200 # Node ID 7304185df26b519b253aba92c6f234fef1fcd4d7 # Parent 637f2b13210adadfc85edb10e8d68de719fa4c47 Fixed parameter list positions again because the previous "elegant" solution only addresses the allocation of parameter table entry positions. diff -r 637f2b13210a -r 7304185df26b optimiser.py --- a/optimiser.py Tue Oct 25 00:20:22 2016 +0200 +++ b/optimiser.py Tue Oct 25 18:38:57 2016 +0200 @@ -577,7 +577,7 @@ # Allocate an extra context parameter in the table. - l = self.parameters[name] = [None] * len(argnames) + l = self.parameters[name] = [None] + [None] * len(argnames) # Store an entry for the name along with the name's position in the # parameter list. @@ -593,7 +593,7 @@ # Indicate an argument list position starting from 1 (after the # initial context argument). - l[position] = (argname, pos) + l[position] = (argname, pos + 1) def populate_tables(self):