[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:02:14 EDT 2018
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
New changeset baf304e82e1b54dbeee6b78ddf168e33ed8d557a by Raymond Hettinger (Miss Islington (bot)) in branch '3.7':
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) (GH-6387)
https://github.com/python/cpython/commit/baf304e82e1b54dbeee6b78ddf168e33ed8d557a
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33203>
_______________________________________
More information about the Python-bugs-list
mailing list