Inserting-embedding some html data at the end of a .py file

Joel Goldstick joel.goldstick at gmail.com
Thu Mar 7 11:28:12 CET 2013


On Thu, Mar 7, 2013 at 5:09 AM, Νίκος Γκρ33κ <nikos.gr33k at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130307/d3f4d461/attachment.html>


More information about the Python-list mailing list