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

Raymond Hettinger report at bugs.python.org
Thu Apr 5 11:19:54 EDT 2018


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


New changeset 091e95e9004b794280ab35becec2c3e30dd5e96e by Raymond Hettinger (Wolfgang Maier) in branch 'master':
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338)
https://github.com/python/cpython/commit/091e95e9004b794280ab35becec2c3e30dd5e96e


----------

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


More information about the Python-bugs-list mailing list