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 westurner
Recipients westurner
Date 2013-07-20.00:34:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374280444.52.0.0757493000076.issue18511@psf.upfronthosting.co.za>
In-reply-to
Content
random.shuffle [1][2] could be faster. 

``xrange(10,1,-1)`` is faster than ``reversed(xrange(1,10))``.

[1] Lib/random.py#l254">http://hg.python.org/cpython/file/v3.Lib/random.py#l254
[2] http://hg.python.org/cpython/file/v2.7.5/Lib/random.py#l276
History
Date User Action Args
2013-07-20 00:34:04westurnersetrecipients: + westurner
2013-07-20 00:34:04westurnersetmessageid: <1374280444.52.0.0757493000076.issue18511@psf.upfronthosting.co.za>
2013-07-20 00:34:04westurnerlinkissue18511 messages
2013-07-20 00:34:04westurnercreate