Recently I started using Python3 and it\'s lack of xrange hurts.
Simple example:
1) Python2:
from time import time as t def
One way to fix up your python2 code is:
import sys if sys.version_info >= (3, 0): def xrange(*args, **kwargs): return iter(range(*args, **kwargs))