for loop possible enhancement

Alex cut_me_out at hotmail.com
Fri Sep 22 14:56:02 EDT 2000


In python2.0, you could do this:

for a, b in zip(range(1, 5), [a, b, c, d]):
    do_stuff()

Alex.

-- 
Speak softly but carry a big carrot.



More information about the Python-list mailing list