----- Mensaje original ----
> De: Gerald Britton <gerald.brit...@gmail.com>
> Para: Vitor Bosshard <algor...@yahoo.com>
> CC: python-3...@udmvt.ru; python-dev@python.org
> Enviado: martes, 20 de enero, 2009 13:40:07
> Asunto: Re: [Python-Dev] PEP 3142: Add a "while" clause to generator 
> expressions
> 
> Right, but the PEP is only about generator expressions.
> 

Yes, but consistency with list comprehensions would be a nice thing to have, 
which is absent from both the "or raise()" idiom and the takewhile one (which 
is, by definition, a generator). The new syntax wouldn't have this issue.

I'm not in favor of the change, just pointing this out.

Vitor


      ¡Todo sobre la Liga Mexicana de fútbol! Estadisticas, resultados, 
calendario, fotos y más:&lt;
http://espanol.sports.yahoo.com/
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to