reorder var_args if named arguments are in front of *args.

This commit is contained in:
Dave Halter
2014-06-19 12:18:24 +02:00
parent a373818965
commit 36fbb6cd3e
2 changed files with 29 additions and 1 deletions

View File

@@ -32,6 +32,12 @@ nested_twice(2)
#! 19 type-error-too-many-arguments
nested_twice(2, 3, 4)
# A named argument can be located before *args.
def star_args_with_named(*args):
return simple2(c='', *args)
star_args_with_named(1, 2)
# -----------------
# **kwargs
# -----------------