Welcome, guest | Sign In | My Account | Store | Cart
from itertools import izip, count

def enumerate(a, b=None):
    "enumerate([start,] iterable)"
    if b is None:
        start, iterable = 0, a
    else:
        start, iterable = a, b
    return izip(count(start), iterable)

History

  • revision 2 (19 years ago)
  • previous revisions are not available