Message169814
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 |
|
Date |
User |
Action |
Args |
2012-09-03 23:14:08 | eng793 | set | recipients:
+ eng793, rhettinger, r.david.murray, serhiy.storchaka |
2012-09-03 23:14:08 | eng793 | set | messageid: <1346714048.88.0.629746439147.issue15837@psf.upfronthosting.co.za> |
2012-09-03 23:14:08 | eng793 | link | issue15837 messages |
2012-09-03 23:14:08 | eng793 | create | |
|