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
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4