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 notIs 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 _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
