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

gh-118131: Command-line interface for the `random` module by hugovk · Pull Request #118132 · python/cpython · GitHub

/ cpython Public

gh-118131: Command-line interface for the random module - #118132

Merged
hugovk merged 4 commits into
python:mainfrom
hugovk:random-cli
May 5, 2024
Merged

gh-118131: Command-line interface for the random module#118132
hugovk merged 4 commits into
python:mainfrom
hugovk:random-cli

Conversation

hugovk commented Apr 21, 2024
edited
Loading

Copy link
Copy Markdown
Member

hugovk added the stdlib Standard Library Python modules in the Lib/ directory label Apr 21, 2024
hugovk requested a review from rhettinger as a code owner April 21, 2024 15:54
rhettinger removed their request for review April 21, 2024 18:54

Copy link
Copy Markdown
Contributor

Personally, I don't support this proposal but won't stand in the way of it either. It seems gratuitous.

Comment thread Lib/random.py
Comment thread Lib/random.py Outdated
Comment thread Lib/random.py
return randint(1, args.integer)

if args.float is not None:
return uniform(1, args.float)

andersk Sep 11, 2024
edited
Loading

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

In #118131 this was specced for floats to use the range between 0 and N of length N, which would be more useful and makes a lot more sense than the range between 1 and N of length N - 1.

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

stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL