Skip to content

Commit

Permalink
Reverse order of pop'd arguments
Browse files Browse the repository at this point in the history
Successive pops reverses, so reverse back
  • Loading branch information
guyer committed Oct 1, 2024
1 parent 49afa8b commit ae84214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fipy/variables/operatorVariable.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ def _py3kInstructions(self, op, style, argDict, id, freshen):
pass
elif ins.opname == 'CALL':
# New in Python 3.11
kwargs = [kw + "=" + str(stack.pop()) for kw in kws]
positionals = [stack.pop() for _ in range(ins.argval - len(kws))]
kwargs = [kw + "=" + str(stack.pop()) for kw in kws][::-1]
positionals = [stack.pop() for _ in range(ins.argval - len(kws))][::-1]
callable = stack.pop()
if len(stack) > 0:
call_self = callable
Expand Down

0 comments on commit ae84214

Please sign in to comment.