generators in *args and illegal *args like *1

This commit is contained in:
David Halter
2013-07-23 00:07:17 +02:00
parent 6a2afa7e94
commit 471f492f12
3 changed files with 27 additions and 2 deletions

View File

@@ -166,6 +166,16 @@ exe[1]
# illegal args (TypeError)
#?
args_func(*1)[0]
# iterator
#? int()
args_func(*iter([1]))[0]
# different types
e = args_func(*[1+"", {}])
#? int() str()
e[0]
#? dict()
e[1]
_list = [1,""]
exe2 = args_func(_list)[0]