buggy python interpretter or am I missing something here?

Terry Reedy tjreedy at udel.edu
Mon Jan 27 01:21:41 EST 2014


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




More information about the Python-list mailing list