summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorLouie Lu <git@louie.lu>2017-08-10 00:58:13 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2017-08-10 00:58:13 (GMT)
commit3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162 (patch)
treeed0b81d4643ce3f589307b23fefe70052f2d629f /Misc
parent3ca9f50f96cfa5c1b7aa56639042531b57f07fbb (diff)
downloadcpython-3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162.zip
cpython-3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162.tar.gz
cpython-3b0f620c1a2a21272a9e2aeca6ca1d1ac10f8162.tar.bz2
bpo-19903: IDLE: Calltips changed to use inspect.signature (#2822)
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/IDLE/2017-08-03-14-08-42.bpo-19903.sqE1FS.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/IDLE/2017-08-03-14-08-42.bpo-19903.sqE1FS.rst b/Misc/NEWS.d/next/IDLE/2017-08-03-14-08-42.bpo-19903.sqE1FS.rst
new file mode 100644
index 0000000..f25fc80
--- /dev/null
+++ b/Misc/NEWS.d/next/IDLE/2017-08-03-14-08-42.bpo-19903.sqE1FS.rst
@@ -0,0 +1,3 @@
+IDLE: Calltips use `inspect.signature` instead of `inspect.getfullargspec`.
+This improves calltips for builtins converted to use Argument Clinic.
+Patch by Louie Lu.