]> 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:24:27 +0000 (09:24 -0700)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Thu, 5 Apr 2018 16:24:27 +0000 (09:24 -0700)
commite25af930a300c01aa043745058a8c7f6c32d89ae
tree4a2428f9c7a2776c6eae4b3bbe6144ca5e8e41ac
parent29bc6f6347b1e05b22180fd296013bb2a104d589
bpo-33203: Ensure random.choice always raises IndexError on empty sequence (GH-6338) (GH-6388)

(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]