Skip to content
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

bpo-40465: Deprecate the optional argument to random.shuffle(). #19867

Merged
merged 5 commits into from May 2, 2020

Conversation

@rhettinger
Copy link
Contributor

@rhettinger rhettinger commented May 2, 2020

https://bugs.python.org/issue40465

Copy link
Contributor

@remilapeyre remilapeyre left a comment

Hi, I think there is a typo in the warning message.

Lib/random.py Outdated Show resolved Hide resolved
Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Please add an entry in What's New.

.. deprecated:: 3.9
In the future, the optional argument *random* will be removed.
Copy link
Member

@serhiy-storchaka serhiy-storchaka May 2, 2020

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.

Lib/random.py Outdated Show resolved Hide resolved
rhettinger and others added 4 commits May 2, 2020
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@rhettinger rhettinger merged commit 190fac9 into python:master May 2, 2020
9 checks passed
@bedevere-bot
Copy link

@bedevere-bot bedevere-bot commented May 2, 2020

@rhettinger: Please replace # with GH- in the commit message next time. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants