You can clone with
Just an idea, would it be possible to have tab completion of functions' arguments names?
Should be possible, I think. We would have to detect that we are inside a function call and identify that function, which I don't think we do, but presumably could.
Example, assuming you have found the function:
spec = inspect.getargspec(func)
# only get names of keyword args:
kwargnames = spec.args[-len(spec.defaults):]
Having just tested, it seems we already can do that. I tried:
In : def f(kinkajou=True):
...: print kinkajou
In : f(k
good call, it certainly does work. I probably should have checked :). Closing.
Yes, but the current behaviour seems to show only optional arguments,
def f(koala, kinkajou=True):
print "I'm a koala"
kaiser kinkajou= kron
Why not get completion for all arguments?
You can actually, e.g.,
>>> def f(a, b):
... print a, b
>>> f(a=3, b=4)
>>> f(b=3, a=4)
that's using Python 2.7, not sure about earlier versions.
Good call, I had forgotten about that! It does work in 2.6, which is the earliest version supported by IPython. How's this?