Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.6] bpo-19903: IDLE: Calltips changed to use inspect.signature (GH-2822)#3053

Merged
terryjreedy merged 2 commits into
python:3.6python/cpython:3.6from
terryjreedy:backport-3b0f620-3.6terryjreedy/cpython:backport-3b0f620-3.6Copy head branch name to clipboard
Aug 10, 2017
Merged

[3.6] bpo-19903: IDLE: Calltips changed to use inspect.signature (GH-2822)#3053
terryjreedy merged 2 commits into
python:3.6python/cpython:3.6from
terryjreedy:backport-3b0f620-3.6terryjreedy/cpython:backport-3b0f620-3.6Copy head branch name to clipboard

Conversation

@terryjreedy

@terryjreedy terryjreedy commented Aug 10, 2017

Copy link
Copy Markdown
Member

mlouielu and others added 2 commits August 9, 2017 21:16
…honGH-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..
(cherry picked from commit 3b0f620)
@terryjreedy

Copy link
Copy Markdown
Member Author

The test part of the patch touched the one code line in idlelib where 3.6 and 3.7 differ, and created another conflict, so I had to resolve the merge conflict (see comment in diff) and test myself. If cherry_picker had run without conflict, I would have closed and re-open to get Appveyor to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.