"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] -- http://mail.python.org/mailman/listinfo/python-list