[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2014-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added test_attribute_exception with two subtests for each of two nasty classes. The resulting failures were fixed in CallTips.py by replacing all ob.__call__ references with one reference inside try_except that saved the method for possible later use. -

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2014-01-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset d55d1cbf5f9a by Terry Jan Reedy in branch '2.7': Issue #16630: Make Idle calltips work even when __getattr__ raises. http://hg.python.org/cpython/rev/d55d1cbf5f9a New changeset 2fe0b2dcc98c by Terry Jan Reedy in branch '3.3': Issue #16630: Make Idle

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2014-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Get_entity already has try-except to block exceptions propagating from eval failure, so wrapping it is redundant. We only need worry about get_argspec. I presume the failure is in get_argspec in the remote process: if hasattr(ob, '__call__'): This can be re

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2014-01-04 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Move CallTips tests to idle_tests versions: +Python 2.7 -Python 3.2 ___ Python tracker ___ ___

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2013-01-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2012-12-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2012-12-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. rpcclt.remotecall also can raise an exception. 2. I think fetch_tip() should return '' in case of exception as for non-existent arguments or for non-callables. You can add tests for this cases too. 3. "break" is a reserved word. It's not a good name for

[issue16630] IDLE: Calltip fails if __getattr__ raises exception

2012-12-06 Thread Roger Serwy
New submission from Roger Serwy: The calltip fails if __getattr__ raises an exception. Take as an example: Python 3.4.0a0 (default:0238cc842805+, Dec 6 2012, 19:17:04) [GCC 4.7.2] on linux Type "copyright", "credits" or "license()" for more information. >>> class Test: def __getattr__