[docs] Code samples

Eli Bendersky eliben at gmail.com
Tue May 24 12:53:50 CEST 2011


> I try the example in exception chapter and it doasn't work
>
> Here what i get:
> *>>> try:*
> *...     raise MyError(2*2)*
> *... except MyError as e:*
> *<stdin>:3: Warning: 'as' will become a reserved keyword in Python 2.6*
> *  File "<stdin>", line 3*
> *    except MyError as e:*
> *                    ^*
>

What version of Python are you running?

Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110524/a83683ba/attachment.html>


More information about the docs mailing list