Best pattern/idiom

Tom B. sbabbitt at commspeed.net
Tue Aug 10 00:17:07 CEST 2004


"Chris Connett" <chrisccc_3k at yahoo.com> wrote in message
news:4117c3d8$1 at buckaroo.cs.rit.edu...
" [ lis[n:n+4] for n in range( 0, len( lis ), 4 ) ]
> which seems very kludgy to me, since it uses a range and len, "

range and len are kludgy only to non-python programers.

Tom





More information about the Python-list mailing list