# Revision history [back]

OK, that makes more sense. But for some purposes, xmrange is faster. Suppose you actually want the output of xmrange as a list. Then if you look at:

def test1(nx):
return xmrange([nx]*3)

def test2(nx):
for k1 in xrange(nx):
for k2 in xrange(nx):

timeit('test1(10)')