Too Self Centered

Just just at xs4all.nl
Sat Jan 11 21:56:24 CET 2003


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




More information about the Python-list mailing list