list comprehention : [ x for x in LIST if x != '' ] -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/tutor/attachments/20080708/76f668e6/attachment.htm>