New submission from Raymond Hettinger <raymond.hettin...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue40465> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com