"as" keyword woes

Terry Reedy tjreedy at udel.edu
Sat Dec 6 21:12:02 CET 2008

In my opinion, this thread is a crock of balony.

Python *occasionally* adds keywords after giving a warning or requiring 
a future import in previous versions.

In 2.2, one had to 'from __future__ import generators' to make a 
generator because doing so required the new 'yield' keyword.
In 2.3, yield became a keyword without the import.

In 2.5, one had to 'from __future__ import with_statement' to make a 
'with' statement.  In 2.6, with because a keyword without the import.
And no one seems to have noticed.  No '"with" keyword woes.

In 2.6, 'as' also because a full-time keyword after several releases of 
being an anomalous part-time contextual keyword.


More information about the Python-list mailing list