#!/usr/local/bin/python2 l = range(30) for i in xrange(100000): r = [e for e in l] r.sort() r = tuple(r) print r