[Python-es] Eliminar campos vacíos de una lista

RadicalEd willian.radicaled en gmail.com
Jue Sep 20 17:20:26 CEST 2012


Gracias, ya estaba buscando en Google

On Thu, Sep 20, 2012 at 10:19 AM, Jose Caballero
<jcaballero.hep en gmail.com>wrote:

>
>
>> x = [i for i in x if i ]
>>
>>
>>
> Documentacion oficial:
>
>
> http://docs.python.org/tutorial/datastructures.html#list-comprehensions
>
>
>
>
>
> _______________________________________________
> Python-es mailing list
> Python-es en python.org
> http://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>
>


-- 
El pasado son solo recuerdos, el futuro son solo sueños
http://www.solocodigo.com
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20120920/2b564245/attachment.html>


Más información sobre la lista de distribución Python-es