aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/interpreter.py b/interpreter.py
index 7e5a36c..09c7ae0 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -616,6 +616,8 @@ class Interpreter():
def reduce_arguments(self, args):
assert(isinstance(args, nodes.Arguments))
+ if args.incorrect_order():
+ raise InvalidArguments('Line %d: all keyword arguments must be after positional arguments.' % args.lineno())
reduced_pos = [self.reduce_single(arg) for arg in args.arguments]
reduced_kw = {}
for key in args.kwargs.keys():