Most viewed recipes by Nitesh Patel http://code.activestate.com/recipes/users/706897/views/2005-01-30T00:36:19-08:00ActiveState Code Recipes"enumerate" before Python 2.3 (Python)
2005-01-30T00:36:19-08:00Nitesh Patelhttp://code.activestate.com/recipes/users/706897/http://code.activestate.com/recipes/364707-enumerate-before-python-23/
<p style="color: grey">
Python
recipe 364707
by <a href="/recipes/users/706897/">Nitesh Patel</a>
.
Revision 2.
</p>
<p>Python 2.3+ "enumerate" function is pretty handy. This bit of code should allow you to use it transparently in pre-Python 2.3 systems.</p>