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

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 opencalltip + # 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