Message332882
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 #35196.
Example:
>>> def foo(s='a'*100):
pass
>>> print(get_argspec(foo))
(s='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa')
>>> def bar(s='a'*100):
"""doc-string"""
pass
>>> print(get_argspec(bar))
(s='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaa')
doc-string |
|
Date |
User |
Action |
Args |
2019-01-02 16:43:42 | taleinat | set | recipients:
+ taleinat, bup |
2019-01-02 16:43:39 | taleinat | set | messageid: <1546447419.98.0.0355519553361.issue35641@roundup.psfhosted.org> |
2019-01-02 16:43:39 | taleinat | link | issue35641 messages |
2019-01-02 16:43:39 | taleinat | create | |
|