Status of PEP's?
James_Althoff at i2.com
James_Althoff at i2.com
Mon Mar 4 19:05:55 EST 2002
"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.
Just keep in mind that indici/indices/indexes-type proposals don't help in
cases where __len__ is not defined. Two-dimensional structures, for
example. Jython/Swing table models, for example.
And PEP 276 -- adding an __iter__ method to class int -- doesn't prevent
the above (nor any other for-loop-oriented enhancement) and can peacefully
coexist with it.
Jim
More information about the Python-list
mailing list