
28 May
2012
28 May
'12
9:44 p.m.
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