On Thu, Mar 7, 2013 at 5:09 AM, Νίκος Γκρ33κ <nikos.gr...@gmail.com> wrote:

> This fails also:
>
> except MySQLdb.ProgrammingError, e:
>
> How on earth the exception is suppsoed to be written!!!!
>

Change from 
except<http://docs.python.org/release/3.0.1/reference/compound_stmts.html#except>
*exc*, *var* to
except<http://docs.python.org/release/3.0.1/reference/compound_stmts.html#except>
*exc* as<http://docs.python.org/release/3.0.1/reference/compound_stmts.html#as>
*var*. See *PEP 3110* <http://www.python.org/dev/peps/pep-3110>.


So change the comma to the word 'as'

> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Joel Goldstick
http://joelgoldstick.com
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to