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 <rep...@bugs.python.org> <http://bugs.python.org/issue15837> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com