'while' in list comprehension?
Batista, Facundo
FBatista at uniFON.com.ar
Wed Oct 22 17:45:23 EDT 2003
More information about the Python-list mailing list
Wed Oct 22 17:45:23 EDT 2003
- Previous message (by thread): 'while' in list comprehension?
- Next message (by thread): 'while' in list comprehension?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
#- I guess I see nothing really wrong with it, although I thought list #- comprehensions were supposed to make the iteration #- transparent--'while' #- kinda destroys the illusion. But these are the only two #- looping constructs #- that make sense in a list comprehension, so why not support #- both? OTOH, #- 'while' makes no sense in a dictionary comprehension (and #- presumably we'll #- have those one day.) Anybody willing to make a PEP? :) . Facundo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ADVERTENCIA La información contenida en este mensaje y cualquier archivo anexo al mismo, son para uso exclusivo del destinatario y pueden contener información confidencial o propietaria, cuya divulgación es sancionada por la ley. Si Ud. No es uno de los destinatarios consignados o la persona responsable de hacer llegar este mensaje a los destinatarios consignados, no está autorizado a divulgar, copiar, distribuir o retener información (o parte de ella) contenida en este mensaje. Por favor notifíquenos respondiendo al remitente, borre el mensaje original y borre las copias (impresas o grabadas en cualquier medio magnético) que pueda haber realizado del mismo. Todas las opiniones contenidas en este mail son propias del autor del mensaje y no necesariamente coinciden con las de Telefónica Comunicaciones Personales S.A. o alguna empresa asociada. Los mensajes electrónicos pueden ser alterados, motivo por el cual Telefónica Comunicaciones Personales S.A. no aceptará ninguna obligación cualquiera sea el resultante de este mensaje. Muchas Gracias. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20031022/35e3c37a/attachment.html>
- Previous message (by thread): 'while' in list comprehension?
- Next message (by thread): 'while' in list comprehension?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list