permuting several lists (was Re: [Python-Dev] zip() and list-comprehension with commas)

Ka-Ping Yee
Wed, 12 Jul 2000 12:31:01 -0700 (PDT)

tuples(), lists(), dict(), and indices() look pretty generally useful
to me.  I agree that they look like good candidates for builtins.

On Wed, 12 Jul 2000, M.-A. Lemburg wrote:
>      irange(object[,indices]) 
>          Builds a tuple of tuples (index, object[index]).  If a sequence
>          indices is given, the indices are read from it.  If not, then
>          the index sequence defaults to trange(len(object)). 

This one in particular looks really fabulous.  +1 to put this in builtins.

In order of usefulness (just imho of course):

     irange     +1
     tuples     +0.5
     indices    +0.5
     dict       +0
     lists      +0

-- ?!ng