Status of PEP's?

Carel Fellinger cfelling at iae.nl
Sun Mar 3 21:20:03 EST 2002


Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:
> "Hernan M. Foffani" wrote:
>> 
>> indici(x) will replace the odd xrange(len(x)) idiom and address the problem
>> of open intervals where the length of the set is not known in advance.

> I like this a lot!

> But... where the **** did the word "indici" come from?

some misplaced latin inflexion?

> Could we please call it either "indexes" or "indices"?

Let's go for indices then, as indexes is to similar to indexed, and I
would like to reserve that word for the case you want the index as wel
as the indexed item like in:

   for i, x in indexed("spam"):
       print "letter %s is a `%d'" % (i, x)
-- 
groetjes, carel



More information about the Python-list mailing list