Message171159
> $ ./python.exe -m timeit -n 100 -s "s= set(range(2000)); l = set(range(20000000))" "s-=l"
s is empty set after first loop. Try this:
$ ./python.exe -m timeit -n 100 -s "s= set(range(2000)); l = set(range(2000,2000+20000000))" "s-=l" |
|
Date |
User |
Action |
Args |
2012-09-24 16:23:39 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, mark.dickinson, belopolsky, eric.smith, stutzbach, ezio.melotti, r.david.murray, abacabadabacaba, maker |
2012-09-24 16:23:39 | serhiy.storchaka | set | messageid: <1348503819.79.0.0868860186283.issue8425@psf.upfronthosting.co.za> |
2012-09-24 16:23:39 | serhiy.storchaka | link | issue8425 messages |
2012-09-24 16:23:39 | serhiy.storchaka | create | |
|