list comprehension problem

Bruno Desthuilliers bruno.42.desthuilliers at websiteburo.invalid
Thu Oct 29 12:20:01 EDT 2009


mk a écrit :
> Hello everyone,
> 
> print hosts
> 
> ['9.156.44.227\n', '9.156.46.34 \n', '\n']
> 


Just for the record, where did you get this "hosts" list from ? (hint : 
depending on the answer, there might be a way to avoid having to filter 
out the list)




More information about the Python-list mailing list