Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Yet one mistake: 
https://stackoverflow.com/questions/35014951/why-is-max-slower-than-sort

$ python3 -m timeit -s 'import random;a=list(range(10000));random.shuffle(a)' 
'a.sort();a[-1]'

Here the list is sorted at first iteration, and all following iterations 
measure the speed of sorting a sorted list.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32039>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to