A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-May/119724.html below:

[Python-Dev] cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle.

[Python-Dev] cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle. [Python-Dev] cpython (3.2): Issue12510: Attempting to get invalid tooltip no longer closes Idle.Terry Reedy tjreedy at udel.edu
Tue May 29 03:44:04 CEST 2012
On 5/28/2012 2:53 AM, Georg Brandl wrote:
> Am 28.05.2012 03:55, schrieb terry.reedy:

>>               namespace.update(__main__.__dict__)
>>               try:
>>                   return eval(name, namespace)
>> -            except (NameError, AttributeError):
>> +                # any exception is possible if evalfuncs True in open_calltip
>> +                # at least Syntax, Name, Attribute, Index, and Key E. if not
>
> Is something missing here?  The comment text seems cut off.

There should be a ; at the end of the first line, but I think I will 
rewrite the comment instead.

>> +            except:
>>                   return None
>
> "except Exception" may be better here.

Idle's Shell catches all exceptions. I think the attempt to provide an 
optional help (a function signature) should too.

-- 
Terry Jan Reedy

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4