Remove empty strings from list

Sion Arrowsmith sion at viridian.paintbox
Tue Sep 15 10:07:58 EDT 2009


Bruno Desthuilliers  <bruno.42.desthuilliers at websiteburo.invalid> wrote:
> >> mylist = line.strip().split()
>
>will already do the RightThing(tm).

So will

mylist = line.split()

-- 
\S

   under construction




More information about the Python-list mailing list