cpython: 03b5f75ddac7 (original) (raw)

--- a/Lib/idlelib/CallTips.py +++ b/Lib/idlelib/CallTips.py @@ -100,52 +100,53 @@ class CallTips: return rpcclt.remotecall("exec", "get_the_calltip", (expression,), {}) else:

+def get_entity(expression):

-def _find_constructor(class_ob):

+# The following are used in both get_argspec and tests +_self_pat = re.compile('self,?\s*') +_default_callable_argspec = "No docstring, see docs." def get_argspec(ob):

+

+

+

@@ -154,13 +155,16 @@ def get_argspec(ob): if argspec: argspec += "\n" argspec += doc[:pos]

################################################# # -# Test code -# +# Test code tests CallTips.fetch_tip, get_entity, and get_argspec + def main():

-

-

tc = TC()

+

+

+

+

+

+

+

+

+

if name == 'main': main()

--- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@ -1,6 +1,14 @@ What's New in IDLE 3.3.0? ========================= +- Issue # 12510: Attempt to get certain tool tips no longer crashes IDLE.

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -144,14 +144,15 @@ Library