hi, i am using python 2.1. Can i use the code below to simulate the enumerate() function in 2.3? If not, how to simulate in 2.1? thanks
from __future__ import generators
def enumerate(sequence):
index = 0
for item in sequence:
yield index, item
index += 1
--
http://mail.python.org/mailman/listinfo/python-list
