Friðrik Már Jónsson <frid...@pyth.net> writes: > ma wrote: >> filter(lambda x: x, your_list) > > Good call! Equivalent but more efficient: > > filter(None, your_list) > > Regards, > Friðrik Már
I was wondering when someone would mention filter() -- http://mail.python.org/mailman/listinfo/python-list