"Canonical" way of deleting elements from lists

Robert Latest boblatest at yahoo.com
Wed Jan 9 12:21:36 CET 2008


Hrvoje Niksic wrote:

> keywords[:] = (s for s in keywords if s)

Looks good but is so far beyond my own comprehension that I don't dare 
include it in my code ;-)

robert



More information about the Python-list mailing list