Message169814
| 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 |
|