for(each) element aliasing

Istvan Albert ialbert at mailblocks.com
Mon Nov 22 18:55:29 CET 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