On Jul 30, 11:42 am, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> > > On Mon, 30 Jul 2007 06:32:55 -0400, Steve Holden wrote: > > > >> >>> [x for x in xrange(0, 101)] == [y for y in xrange(101)] > > >> True > nitpick: list(xrange(42)) == list(xrange(42)) is slightly more concise > than the list comp.. Not that it has anything to do with this topic anymore, but I find the list comp a bit clearer for expressing the thought 'each element in one is the same as the coresponding element in the other, or: the sequences are identical' -- the list() version would proabably have had me going 'huh?' even longer ^_^. -- [star for star in weaver] -- http://mail.python.org/mailman/listinfo/python-list