[docs] Code samples

Ahmed TAHIRI a.tahiri at f2s.ma
Wed May 18 17:27:24 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:

The warning is the fact behind the error, isn't it?

Thank's for your answer.

Ingénieur sécurité systèmes et réseaux
Free Software Services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20110518/7cd8bb44/attachment-0001.html>

More information about the docs mailing list