bearophileHUGS at lycos.com a écrit : > Bruno Desthuilliers: >> result = [line.strip() for line in f.readlines()] > > Probably better, lazily: > result = [line.strip() for line in infile] This is of course better in the general case, but I wanted to stay consistant with the other examples...