]> granicus.if.org Git - python/commit
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 5 Apr 2018 16:02:12 +0000 (09:02 -0700)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Thu, 5 Apr 2018 16:02:12 +0000 (09:02 -0700)
commitbaf304e82e1b54dbeee6b78ddf168e33ed8d557a
tree502f940b1263b11be58f59249c7f6d3ac1b7072e
parent83f564fd242c1af9dbe6d4273ad50586489000e3
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) (GH-6387)

(cherry picked from commit 091e95e9004b794280ab35becec2c3e30dd5e96e)

Co-authored-by: Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de>
Lib/random.py
Lib/test/test_random.py
Misc/NEWS.d/next/Library/2018-04-05-11-09-45.bpo-33203.Hje9Py.rst [new file with mode: 0644]