--- Alex Martelli <[EMAIL PROTECTED]> wrote:

> Steve Howell <[EMAIL PROTECTED]> wrote:
>    ...
> > for has_chars, frags in itertools.groupby(lines,
> > lambda x: len(x) > 0):
> 
> Hmmm, it appears to me that itertools.groupby(lines,
> bool) should do
> just the same job, just a bit faster and simpler,
> no?
> 

Agreed.  

I updated the webpages with your change (after testing
it in 2.5):

http://wiki.python.org/moin/SimplePrograms




       
____________________________________________________________________________________Take
 the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to