8000 bpo-19903: IDLE: Calltips changed to use inspect.signature by mlouielu · Pull Request #2822 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-19903: IDLE: Calltips changed to use inspect.signature #2822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Aug 10, 2017
Prev Previous commit
Next Next commit
Revert partial code
  • Loading branch information
mlouielu committed Aug 3, 2017
commit 39907c72da3c8931aff2d67d910320cead6438a4
3 changes: 2 additions & 1 deletion Lib/idlelib/calltips.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def get_argspec(ob):
argspec = str(inspect.signature(fob))
except ValueError as err:
msg = str(err)
return _invalid_method if msg.startswith(_invalid_method) else default
if msg.startswith(_invalid_method):
return _invalid_method

if '/' in argspec:
"""Using AC's positional argument should add the explain"""
Expand Down
0