for(each) element aliasing

Istvan Albert ialbert at mailblocks.com
Mon Nov 22 12:55:29 EST 2004


Reinhold Birkenfeld wrote:

> But for this you won't need enumerate:
> for index in range(len(arr)):

Isn't the range(len(arr)) construct somewhat of an
contraption? It has become a recognizable pattern
of course but that was by necessity rather than
correctness.

Istvan.



More information about the Python-list mailing list