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 eng793
Recipients eng793, r.david.murray, rhettinger, serhiy.storchaka
Date 2012-09-03.23:14:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346714048.88.0.629746439147.issue15837@psf.upfronthosting.co.za>
In-reply-to
Content
Yup. This is the result of simply eliminating the condition in the loop and just using the second argument (for the purposes of testing this only):


amoura@amoura-laptop:~/cpython$ time ./python -c "import random; lst=list(range(1000000)); random.shuffle(lst,random.random); print (len(lst))"
1000000

real	0m7.330s
user	0m7.148s
sys	0m0.092s
History
Date User Action Args
2012-09-03 23:14:08eng793setrecipients: + eng793, rhettinger, r.david.murray, serhiy.storchaka
2012-09-03 23:14:08eng793setmessageid: <1346714048.88.0.629746439147.issue15837@psf.upfronthosting.co.za>
2012-09-03 23:14:08eng793linkissue15837 messages
2012-09-03 23:14:08eng793create