[issue15837] Added test to test_random.py testing Random.shuffle

Serhiy Storchaka report at bugs.python.org
Tue Sep 4 01:04:19 CEST 2012


Serhiy Storchaka added the comment:

> This could be because of the many tests of whether the 2nd argument is None
> in the loop.

This is because Random._randbelow (and therefore randrange, randint) is 
relatively slow.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15837>
_______________________________________


More information about the Python-bugs-list mailing list