This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients terry.reedy
Date 2020-01-26.08:12:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1580026332.03.0.0808003249294.issue39456@roundup.psfhosted.org>
In-reply-to
Content
IDLE should run and calltips and tests should work even callables lack docstrings, either because none is defined or because there are suppressed (CPython compile switch for builtins, CPython runtime switch for user objects).  I believe calltips work with or without docstrings present, but:

One User class test is skipped with -OO.  It should be changed to still work.

Multiple builtin tests fail.  #37501 proposes to skip them when compiled without docstrings.  The right long-term solution for IDLE is to change the tests.  My idea is to expand tiptest with 'out' replaced by the signature part, the processed docstring part, and the docstring object.  I want to try something like 

def tiptest(obj, docobj, sig, doc):
    out = sig += doc if docobj.__doc__ is not None else ''
    self.assertEqual(get_spec(obj), out)
History
Date User Action Args
2020-01-26 08:12:12terry.reedysetrecipients: + terry.reedy
2020-01-26 08:12:12terry.reedysetmessageid: <1580026332.03.0.0808003249294.issue39456@roundup.psfhosted.org>
2020-01-26 08:12:11terry.reedylinkissue39456 messages
2020-01-26 08:12:11terry.reedycreate