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

Jose Caballero jcaballero.hep en gmail.com
Jue Sep 20 17:19:30 CEST 2012


>
> x = [i for i in x if i ]
>
>
>
Documentacion oficial:


http://docs.python.org/tutorial/datastructures.html#list-comprehensions
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://mail.python.org/pipermail/python-es/attachments/20120920/efa550ee/attachment.html>


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