Beloved python filter
Is it just me or does anybody else find it easier to write:
elmList = filter( len, elmList )
then
elmList = [ x for x in elmList if len(x) ]
I don’t know why, but if I want to use the second form, I always have to look it up somewhere . I know filter and friends are frowned upon, but I can’t stop liking them.