For some reason, ocassionally when I see xrange, I think "But wasn't that deprecated since range is now a . . oh wait that's xreadlines". xrange is a cool thing the few times where you really need it.
john > Not sure what i is really for, but j seems to be independent, > so perhaps (also untested, and caveat: it's past bedtime) > > i = nPoints - 1 > for j in xrange(nPoints): > # whatever > i = j > > Regards, > Bengt Richter -- http://mail.python.org/mailman/listinfo/python-list