filter(lambda x: x, your_list)<br><br><div class="gmail_quote">On Wed, Jul 8, 2009 at 10:44 AM, Daniel Austria <span dir="ltr"><<a href="mailto:futurebase@gmx.at">futurebase@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Hi python - hackers,<br>
<br>
just one question. How can i remove all 0 values in a list? Sure - i<br>
can loop over it, but that s not a neat style.  list.remove() will<br>
only remove the first occurence. Doing that while no exception is<br>
raised is also uncool, right?<br>
<br>
Some suggestions?<br>
<br>
<br>
Best,<br>
Dan<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>