Well, there's a pull request you can use locally:
https://github.com/JuliaLang/julia/pull/5971

Jeff didn't like that it lists the methods twice, but doesn't count
them twice, so he didn't want to merge it, and I haven't had time to
fix it.

On Mon, May 12, 2014 at 5:01 PM, Ethan Anderes <ethanande...@gmail.com> wrote:
> Is there a way to get methods(...) to print out the keyword arguments of a 
> function and the default values? For example `methods(foo)` below doesn't 
> display `par` as a keyword argument:
>
> ```
> julia> foo(x; par = 0) = x*par
> foo (generic function with 1 method)
>
> julia> methods(foo)
> # 1 method for generic function "foo":
> foo(x) at none:1
> ```
>
> From my perspective it would be really useful if methods(...) could print out 
> keywords and (maybe) default values. Indeed, most of the time I'm searching 
> the on-line docs are for keywords (in both Julia and Python).

Reply via email to