This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients collinwinter, eric.smith, pitrou, rhettinger, stutzbach, terry.reedy, tim.peters
Date 2010-09-24.21:49:49
SpamBayes Score 0.0045085973
Marked as misclassified No
Message-id <1285364991.19.0.534160911948.issue9915@psf.upfronthosting.co.za>
In-reply-to
Content
Does this help any?
>>> import random
>>> from timeit import timeit
>>> testlist = list(range(100000))
>>> random.shuffle(testlist)
>>> timeit('t=list(testlist); t.sort()',
    'from __main__ import testlist', number=1)
0.1467957519740679

I just learned the import trick from the tracker issue suggesting that it be made more prominent.
History
Date User Action Args
2010-09-24 21:49:51terry.reedysetrecipients: + terry.reedy, tim.peters, collinwinter, rhettinger, pitrou, eric.smith, stutzbach
2010-09-24 21:49:51terry.reedysetmessageid: <1285364991.19.0.534160911948.issue9915@psf.upfronthosting.co.za>
2010-09-24 21:49:49terry.reedylinkissue9915 messages
2010-09-24 21:49:49terry.reedycreate