[Python-Dev] Re: New builtins
M.-A. Lemburg
mal@lemburg.com
Thu, 13 Jul 2000 12:16:56 +0200
Ka-Ping Yee wrote:
>
> 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
If you want these in the standard dist, just go ahead and
steal them from mx.Tools -- I don't have time to look into
this right now (and of course I already have them as builtins ;-)
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/