refactorings and start of *args / **kwargs

This commit is contained in:
David Halter
2012-05-04 14:46:28 +02:00
parent ec2e0b28cf
commit b6e98b2eee
3 changed files with 52 additions and 31 deletions

View File

@@ -164,17 +164,17 @@ a.
class C(object):
def c_a(self):
self.c_b = 1
def args_func(arg1, *args):
def args_func(arg1=0, *args, **kwargs):
return arg1
return args
#? ['real']
args_func(1,"")[0].real
args_func(1,"", a=list)[0].
args_func().; C().