In article <3e2083fc$1 at nntp0.pdx.net>, Scott David Daniels <Scott.Daniels at Acm.Org> wrote: > > Or > > self.total = len[x for x in f.readlines() if x != ''] > or self.total = len([None for x in f.readlines() if x != '']) Still not better than the original, which doesn't build a (potentially long) list at all. Just