nested functions with *args should only raise an error if there's well defined input.

This commit is contained in:
Dave Halter
2014-05-28 14:35:48 +02:00
parent a695166585
commit 4f66591227
2 changed files with 13 additions and 4 deletions

View File

@@ -2,9 +2,14 @@
def simple(a):
return a
def nested(*args):
return simple(*args)
nested(1)
#! 6 type-error-too-few-arguments
nested()
def nested_no_call_to_function(*args):
return simple(1, *args)