What's a call-tip to do?
Tal Einat
tal.no.no.spam at gmail.com
Sun Jun 8 08:16:17 EDT 2008
"Terry Reedy" wrote:
> "Raymond Hettinger" wrote
>
> Tal Einat wrote:
>
> > I just ran into this. In IDLE (Python 2.5), the call-tip for
> > itertools.count is:
> > "x.__init__(...) initializes x; see x.__class__.__doc__ for signature"
>
> | My IDLE (1.2.2 running on Python 2.5.2) has the correct call-tip.
>
> As does my 3.0 version. count([first_val]) -> count object
Sorry, my bad. I'm working with an experimental version of
CallTips.py, and apparently it works differently... I should have
tested this before posting.
The problem still exists though; try the following, for example:
class A:
def __init__(self):
"Doc-string for the constructor"
The call-tip for A will be empty, instead of showing the constructor's
doc-string.
In my version, which prefers the __init__ doc-string to the class's
doc-string, the call-tip works for the above example but not for
itertools.count and such. It seems to me that preferring the __init__
doc-string should be the way to go... am I wrong?
- Tal Einat
reduce(lambda m,x:[m[i]+s[-1] for i,s in enumerate(sorted(m))],
[[chr(154-ord(c)) for c in '.&-&,l.Z95193+179-']]*18)[3]
More information about the Python-list
mailing list