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

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

No files matched your search

+5
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)