FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-40465: Deprecate the optional argument to random.shuffle(). by rhettinger · Pull Request #19867 · python/cpython · GitHub

/ cpython Public

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

Merged
rhettinger merged 5 commits into
python:masterfrom
rhettinger:deprecate_shuffle_param
May 2, 2020
Merged

bpo-40465: Deprecate the optional argument to random.shuffle().#19867
rhettinger merged 5 commits into
python:masterfrom
rhettinger:deprecate_shuffle_param

Conversation

rhettinger commented May 2, 2020
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

remilapeyre left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

Comment thread Lib/random.py Outdated

serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please add an entry in What's New.

Comment thread Doc/library/random.rst Outdated
Comment on lines +211 to +212
.. deprecated:: 3.9
In the future, the optional argument *random* will be removed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Comment thread Lib/random.py Outdated
rhettinger and others added 4 commits May 2, 2020 15:08
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
rhettinger merged commit 190fac9 into python:master May 2, 2020

Copy link
Copy Markdown

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL