mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-09 23:34:45 +08:00
36 lines
415 B
Python
36 lines
415 B
Python
"""
|
|
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)
|