On 1/27/2014 12:04 AM, Gary Herron wrote:
Do try: ... except Exception,e: print e at the absolute minimum. (Python 3 syntax would differ slightly, but the advice is the same.)
The 'python 3' syntax except Exception as e:works in 2.7 and perhaps 2.6. So use it unless you need compatibility with even earlier versions.
-- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list