Best pattern/idiom

Tom B. sbabbitt at commspeed.net
Mon Aug 9 18:17:07 EDT 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