Author terry.reedy
Recipients Claudiu.Popa, larry, michael.foord, ncoghlan, terry.reedy, yselivanov
Date 2014-01-19.10:33:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390127626.55.0.213916480383.issue17481@psf.upfronthosting.co.za>
In-reply-to
Content
The relevant code in CallTips.py is
  argspec = ""
  if hasattr(ob, '__call__'):
...
    if isinstance(fob, (types.FunctionType, types.MethodType)):
      argspec = inspect.formatargspec(*inspect.getfullargspec(fob))

So I want to broaden the second condition (or remove it), but if it returns something .formatargspec cannot digest, the outer call will have to be conditioned. My impression is that str(signature object) returns pretty much what .formatargspec does, but I have not experimented yet.

My #20122 patch moves currently commented out tests in CallTips.py that use the above to test_calltips.py. I will commit as soon as I test on 3.4. Until then, getfullargspec is not being used in the Idle test suite.
History
Date User Action Args
2014-01-19 10:33:46terry.reedysetrecipients: + terry.reedy, ncoghlan, larry, michael.foord, Claudiu.Popa, yselivanov
2014-01-19 10:33:46terry.reedysetmessageid: <1390127626.55.0.213916480383.issue17481@psf.upfronthosting.co.za>
2014-01-19 10:33:46terry.reedylinkissue17481 messages
2014-01-19 10:33:46terry.reedycreate