[docs] Python docs bug in 2.6 - 'as' is now a reserved keyword

Tim Bellis Tim.Bellis at metaswitch.com
Mon Oct 31 15:32:30 CET 2011


http://docs.python.org/whatsnew/2.6.html#porting-to-python-2-6 doesn't mention that 'as' is now a reserved keyword in Python 2.6 and so any variables named 'as' will need to be renamed.

Regards,

Tim

PS Handily, we're warned about this in Python 2.5 :)

Python 2.5 (r25, Dec 12 2008, 17:45:12)
[GCC 4.1.2 20070626 (Red Hat 4.1.2-14)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> as=1
<stdin>:1: Warning: 'as' will become a reserved keyword in Python 2.6

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20111031/149f8d47/attachment.html>


More information about the docs mailing list