Help resolve a syntax error on 'as' keyword (python 2.5)

Diez B. Roggisch deets at nospam.web.de
Tue Nov 3 09:00:23 EST 2009


Vladimir Ignatov wrote:

> Hi,
> 
> "except Exception as variable"
> 
> is a new python-3 syntax.
> 
> You should use "except Exception, variable" syntax in 2.x series.

Not entirely true. This feature has been backported to python2.6 as well.

Diez



More information about the Python-list mailing list