"as" keyword woes

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Dec 9 01:59:10 EST 2008


En Mon, 08 Dec 2008 18:07:22 -0200, J. Cliff Dyer <jcd at sdf.lonestar.org>
escribió:

> On Wed, 2008-12-03 at 21:42 -0800, Warren DeLano wrote:
>> Anyway, it seems obvious that the right decision for our customers (or
>> more importantly, for their countless lines of autogenerated-Python
>> log,
>> state, and code files from the past decade) is to stick with C/Python
>> 2.5.x for the time being and plan to make the jump to a
>
> All that broken code does sound like a hassle.  However, I think the
> workaround would be a fairly simple refactor:
>
> 1) make 'as_type' (or some other equivalent name like 'as_') a synonym
> for 'as':

Another workaround was posted last Wednesday by Matimus in message
http://groups.google.com/group/comp.lang.python/msg/128a2cec74a96d3d

Both seem like a reasonable solution.

-- 
Gabriel Genellina




More information about the Python-list mailing list