Adding new stuff

This commit is contained in:
ViktorBarzin 2017-07-09 00:19:01 +03:00
parent a1687a2e5b
commit f8f54ab17a
1580 changed files with 205558 additions and 0 deletions

View file

@ -0,0 +1,48 @@
"""
Named Params:
>>> def a(abc): pass
...
>>> a(abc=3) # <- this stuff (abc)
"""
def a(abc):
pass
#? 5 ['abc']
a(abc)
def a(*some_args, **some_kwargs):
pass
#? 11 []
a(some_args)
#? 13 []
a(some_kwargs)
def multiple(foo, bar):
pass
#? 17 ['bar']
multiple(foo, bar)
#? ['bar']
multiple(foo, bar
my_lambda = lambda lambda_param: lambda_param + 1
#? 22 ['lambda_param']
my_lambda(lambda_param)
# __call__
class Test(object):
def __init__(self, hello_other):
pass
def __call__(self, hello):
pass
#? 12 ['hello']
Test()(hello=)
#? 11 []
Test()(self=)