On 5/28/2012 9:48 PM, Brian Curtin wrote:
> On Mon, May 28, 2012 at 8:44 PM, Terry Reedy<tjre...@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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com