[issue33203] random.choice: raise IndexError on empty sequence even when not using getrandbits internally

Raymond Hettinger report at bugs.python.org
Thu Apr 5 12:24:29 EDT 2018


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:


New changeset e25af930a300c01aa043745058a8c7f6c32d89ae by Raymond Hettinger (Miss Islington (bot)) in branch '3.6':
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) (GH-6388)
https://github.com/python/cpython/commit/e25af930a300c01aa043745058a8c7f6c32d89ae


----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33203>
_______________________________________


More information about the Python-bugs-list mailing list