[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 04:59:50 CEST 2012


On 5/28/2012 9:48 PM, Brian Curtin wrote:

On Mon, May 28, 2012 at 8:44 PM, Terry Reedy<tjreedy at udel.edu> wrote:

snipped context: return eval(user_entered_expression, namespace)

  •        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.

Can you explain what this means?

What what means? I am not sure what you are asking. The issue might help http://bugs.python.org/issue12510

You should probably not have a bare except

Idle code already has many of them Some perhaps should not be, but I cannot tell with my current level of understanding of how Idle works. Would you prefer 'except BaseException:' ?

I'm not sure what IDLE has to do with it.

This is a patch to Idle.

tjr



More information about the Python-Dev mailing list