[issue38689] IDLE crashes when KeyError is raised during calltip generation

2020-04-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: get_argspec accesses the user object 3 times. The first, ob.__call__ was already wrapped in try-except. The second, signature(ob or ob.__call) is wrapped by this issue. It also adds a new test based on Dan's example. The third is (ob or

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2020-04-03 Thread miss-islington
miss-islington added the comment: New changeset 15337726e5b92976c2815d05c514804e9aa49a8c by Miss Islington (bot) in branch '3.8': bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152) https://github.com/python/cpython/commit/15337726e5b92976c2815d05c514804e9aa49a8c

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2020-04-03 Thread miss-islington
miss-islington added the comment: New changeset 681044a0ab6c93554ff8d003c7f9fe5fdb0c83ba by Miss Islington (bot) in branch '3.7': bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152) https://github.com/python/cpython/commit/681044a0ab6c93554ff8d003c7f9fe5fdb0c83ba

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2020-04-03 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +18715 pull_request: https://github.com/python/cpython/pull/19353 ___ Python tracker

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2020-04-03 Thread miss-islington
Change by miss-islington : -- pull_requests: +18716 pull_request: https://github.com/python/cpython/pull/19354 ___ Python tracker ___

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2020-04-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 52013e5b6d5ca32eef5a3d65ecdf7db89cefc2fd by Tal Einat in branch 'master': bpo-38689: avoid IDLE hanging when calltip fails getting a signature (GH-17152) https://github.com/python/cpython/commit/52013e5b6d5ca32eef5a3d65ecdf7db89cefc2fd

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-14 Thread Tal Einat
Tal Einat added the comment: See PR GH-17152 with a fix for the uncaught exception in getargspec(). -- nosy: +taleinat ___ Python tracker ___

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-14 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +16661 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/17152 ___ Python tracker

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Further experiments suggest a fix for the hang, which is not specific to this example. See new issue #38695. -- stage: -> test needed type: -> behavior versions: +Python 3.7, Python 3.9 ___ Python tracker

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since isinstance(Object.__call__, types.MethodType) is False, the 'fob' in 'inspect.signature(fob)' is Object. (See the initial get_argspec code.) Indeed, 'inspect.signature(Object)' results in the traceback following inspect.signature(fob) and

[issue38689] IDLE crashes when KeyError is raised during calltip generation

2019-11-04 Thread Dan Snider
New submission from Dan Snider : When the following program has been input (into 32 bit 3.8.0 Python running on windows 10), all IDLE processes and windows will immediately and irrevocably hang the instant the open parentheses at the end of the statement "Object(" is rendered. However