-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-40465: Deprecate the optional argument to random.shuffle(). #19867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I think there is a typo in the warning message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an entry in What's New.
Doc/library/random.rst
Outdated
.. deprecated:: 3.9 | ||
In the future, the optional argument *random* will be removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the shuffle()
function is deprecated. It should be specified that the argument is deprecated.
You can also use the deprecated-removed
directive to specify the version of removing.
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…on into deprecate_shuffle_param
@rhettinger: Please replace |
https://bugs.python.org/issue40465