[issue40465] Deprecate the optional *random* argument to random.shuffle()

Raymond Hettinger report at bugs.python.org
Fri May 1 04:31:41 EDT 2020


New submission from Raymond Hettinger <raymond.hettinger at gmail.com>:

shuffle(x, random=None)    ⟼    shuffle(x)

AFAICT, no one ever uses the optional parameter, nor would they have a valid reason to do so.  It is an ancient API oddity and is inconsistent with the other methods in the module.  I've long been annoyed by it and would like to see it cleaned-up before I retire ;-)

https://docs.python.org/3/library/random.html#random.shuffle

----------
components: Library (Lib)
messages: 367826
nosy: rhettinger, tim.peters
priority: normal
severity: normal
status: open
title: Deprecate the optional *random* argument to random.shuffle()
type: behavior
versions: Python 3.9

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


More information about the Python-bugs-list mailing list