dimanche 26 janvier 2014

Re: buggy python interpretter or am I missing something here? topic




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






Aucun commentaire:

Enregistrer un commentaire