Status of PEP's?

Courageous jkraska at san.rr.com
Thu Feb 28 13:11:16 EST 2002


>  for i in len(mylist):
>
>Creates an iterator over the indices in mylist.

I just don't think so. It would be better to have something
which behaves slightly more like a classic for form. This
could almost be achieved by some sort of first class range
object thusly. In fact, one might even use slice notation:

for i in [0:len(mylist):1]:

... where the stride is optional of course.

C//




More information about the Python-list mailing list