Hrvoje Niksic <[EMAIL PROTECTED]> writes: > If you're looking for a quick (no quadratic behavior) and convenient > way to do it, you can do it like this: > > keywords = [s for s in keywords if s != '']
It now occurred to me that a good compromise between convenience and efficiency that retains the same list is: keywords[:] = (s for s in keywords if s) -- http://mail.python.org/mailman/listinfo/python-list