davidhalter/jedi — pull request #53 by tkf (2012-11-03 23:18:17+00:00)
Title: Call signature in Completion.doc

This PR adds call signature to `Completion.doc`. With this PR, `Completion.doc` for `json.load` will be like this:

```
load(fp, encoding=None, cls=None, object_hook=None, parse_float=None,
parse_int=None, parse_constant=None, object_pairs_hook=None, **kw)

Deserialize ``fp`` (a ``.read()``-supporting file-like object containing ...
```

It would be nice if I can show call signature of `__init__` for classes but I couldn't figure out how to do it.

The default width=72 is taken from http://www.python.org/dev/peps/pep-0008/#maximum-line-length