[issue12510] IDLE get_the_calltip mishandles raw strings

2012-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 477508efe4ab by Terry Jan Reedy in branch '2.7': Issue 12510: Expand 2 bare excepts. Improve comments. Change deceptive name http://hg.python.org/cpython/rev/477508efe4ab New changeset f927a5c6e4be by Terry Jan Reedy in branch '3.2': Issue 12510: E

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-28 Thread Roger Serwy
Roger Serwy added the comment: Which comment needs revision? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am reopening just as a reminder to revise the comment. -- status: closed -> open ___ Python tracker ___ _

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset 938b12452af7 by Terry Jan Reedy in branch '2.7': Issue12510: Attempting to get invalid tooltip no longer closes Idle. http://hg.python.org/cpython/rev/938b12452af7 New changeset 4a7582866735 by Terry Jan Reedy in branch '3.2': Issue12510: Attemptin

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: I'm ok with removing the exception list, but add a comment like "# *any* exception could happen in the eval". -- ___ Python tracker ___ _

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'a'(, [](, {}( no longer do anything. [int][0]( and {0:int}[0] bring up int tooltip. However, patch is not a complete fix yet. [int][1]( and {0:int}[1] both 'crash' Idle. So we need to add IndexError and KeyError to +except (NameError, AttributeErro

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Roger Serwy
Roger Serwy added the comment: Terry, the original patch added "Not callable" because I wasn't sure what the consensus was on proper behavior. Now I know. :) Attached is a revision against 3.3a3+ which omits the calltip if the object is not callable. The behavior difference between 2.7 and 3

[issue12510] IDLE get_the_calltip mishandles raw strings

2012-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 2.7 & 3.3 on Win 7, 'a'( brings up calltip (bad). With 3.3, '\xyz'( causes Idle to die (worse) With 2.7, the same or u'\xyz'( have no effect, just like 3(. There are a lot of little differences between 2.7 and 3.x, but the main one is the use of inspect i

[issue12510] IDLE get_the_calltip mishandles raw strings

2011-12-21 Thread Roger Serwy
Roger Serwy added the comment: The attached patch fixes the bug. The bug occurs in "get_entity" which is used to get the object. Then "get_argspec" determines the calltip text. The calltip can be prevented for strings by having get_argspec check if the object has a "__call__" method. I opted

[issue12510] IDLE get_the_calltip mishandles raw strings

2011-07-09 Thread Ned Deily
Ned Deily added the comment: The problem is easily reproducible. Although it shouldn't give that error (and that can be fixed), it seems to me that IDLE should not be trying to give a calltip in that context. What it is trying to do is display the __doc__ attribute of the string but the __do

[issue12510] IDLE get_the_calltip mishandles raw strings

2011-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: What platform? It sometimes makes a difference with tcl/tk and hence idle. -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue12510] IDLE get_the_calltip mishandles raw strings

2011-07-06 Thread Roy Fox
New submission from Roy Fox : Hi, When you type (not copy-paste!) into an IDLE shell a string literal followed by ( you get a calltip. When the string contains a bad unicode escaping you get an error (see example below), which makes some sense. But when the string is raw, it isn't treated as