1
0
forked from VimPlug/jedi

*args / **kwargs remodelled

This commit is contained in:
David Halter
2012-05-07 22:41:41 +02:00
parent 40e59c0476
commit 57128bf17f
6 changed files with 131 additions and 72 deletions

View File

@@ -109,7 +109,21 @@ exe[1][1].append
# -----------------
# ** kwargs
# -----------------
def kwargs_func(**kwargs):
return kwargs
exe = kwargs_func(a=3,b=4)
#? []
exe.
# -----------------
# *args / ** kwargs
# -----------------
def fu(a=1, b="", *args, **kwargs):
return a,b,args,kwargs
exe = fu(list, 1, "", c=set)
##? ['append']
exe[0].