]> granicus.if.org Git - python/commit
[3.6] bpo-19903: IDLE: Calltips changed to use inspect.signature (GH-2822) (#3053)
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 10 Aug 2017 04:46:29 +0000 (00:46 -0400)
committerGitHub <noreply@github.com>
Thu, 10 Aug 2017 04:46:29 +0000 (00:46 -0400)
commit646f6c3096abfe5bde13f039ebf32bce5baf083a
tree96f8f1c13357638c6bcda0b43dd8967a4025798b
parent4388b4257abf3b9c348cf4db8c6144dcc07f3e98
[3.6] bpo-19903: IDLE: Calltips changed to use inspect.signature (GH-2822) (#3053)

Idlelib.calltips.get_argspec now uses inspect.signature instead of inspect.getfullargspec, like help() does.  This improves the signature in the call tip in a few different cases, including builtins converted to provide a signature.  A message is added if the object is not callable, has an invalid signature, or if it has positional-only parameters.
Patch by Louie Lu..
(cherry picked from commit 3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162)
Lib/idlelib/calltips.py
Lib/idlelib/idle_test/test_calltips.py
Misc/NEWS.d/next/IDLE/2017-08-03-14-08-42.bpo-19903.sqE1FS.rst [new file with mode: 0644]