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

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

Merged
merged 4 commits into from
May 5, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Apr 21, 2024

@hugovk hugovk added the stdlib Python modules in the Lib dir label Apr 21, 2024
@hugovk hugovk requested a review from rhettinger as a code owner April 21, 2024 15:54
@rhettinger rhettinger removed their request for review April 21, 2024 18:54
@rhettinger
Copy link
Contributor

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

@hugovk hugovk enabled auto-merge (squash) May 5, 2024 06:06
@hugovk hugovk merged commit 3b32575 into python:main May 5, 2024
33 checks passed
@hugovk hugovk deleted the random-cli branch May 5, 2024 06:30
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
return randint(1, args.integer)

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

@andersk andersk Sep 11, 2024

Choose a reason for hiding this comment

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants