You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE: calltips not properly formatted for functions without doc-strings #79822
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-01-03.09:52:56.228>created_at=<Date2019-01-02.16:43:39.946>labels= ['easy', '3.8', 'expert-IDLE', 'type-bug', '3.7']
title='IDLE: calltips not properly formatted for functions without doc-strings'updated_at=<Date2019-01-09.19:22:17.374>user='https://github.com/taleinat'
IDLE usually wraps call-tips to 85 characters. However, for functions without a doc-string, this formatting is skipped. This is an issue for functions with long signatures, e.g. due to having many arguments or due to having default values with long repr-s.
New changeset ab54b9a by Terry Jan Reedy (Emmanuel Arias) in branch 'master': bpo-35641: IDLE - format calltip properly when no docstring (GH-11415) ab54b9a
Activity
taleinat commentedon Jan 2, 2019
IDLE usually wraps call-tips to 85 characters. However, for functions without a doc-string, this formatting is skipped. This is an issue for functions with long signatures, e.g. due to having many arguments or due to having default values with long repr-s.
This appears to be caused by line 170 in Lib/idlelib/calltip.py being indented once too much. (see: https://github.com/python/cpython/blob/87e59ac11ee074b0dc1bc864c74fac0660b27f6e/Lib/idlelib/calltip.py)
Thanks to Dan Snider for the original report in msg332881 on issue bpo-35196.
Example:
taleinat commentedon Jan 2, 2019
I'm marking this as easy.
Whoever works on this should make sure to add a new test case for this bug.
eamanu commentedon Jan 2, 2019
Hi Tal Einat!
I would like to take this issue to be my first contribution :-)
Thanks!
terryjreedy commentedon Jan 3, 2019
New changeset ab54b9a by Terry Jan Reedy (Emmanuel Arias) in branch 'master':
bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)
ab54b9a
miss-islington commentedon Jan 3, 2019
New changeset 3c83cb7 by Miss Islington (bot) in branch '3.7':
bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)
3c83cb7
taleinat commentedon Jan 3, 2019
Thanks for the report, Dan!
Thanks for the fix, Emmanuel!
terryjreedy commentedon Jan 9, 2019
New changeset ee65594 by Terry Jan Reedy in branch 'master':
bpo-35641: Move IDLE blurb to IDLE directory (bpo-11479)
ee65594
miss-islington commentedon Jan 9, 2019
New changeset 6f76ef8 by Miss Islington (bot) in branch '3.7':
bpo-35641: Move IDLE blurb to IDLE directory (GH-11479)
6f76ef8