Skip to content

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

@hugovkhugovk commented Apr 21, 2024

Copy link
Copy Markdown
Member

@hugovkhugovk added the stdlib Standard Library Python modules in the Lib/ directory label Apr 21, 2024
@hugovk
hugovk requested a review from rhettinger as a code ownerApril 21, 2024 15:54
@rhettinger

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 threadLib/random.py
Comment threadLib/random.py Outdated
@hugovk
hugovk enabled auto-merge (squash) May 5, 2024 06:06
@hugovk
hugovk merged commit 3b32575 into python:mainMay 5, 2024
@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
Comment threadLib/random.py
return randint(1, args.integer)

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

@anderskanderskSep 11, 2024

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.

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.

@hugovkhugovk mentioned this pull request Mar 13, 2025
9 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlibStandard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@hugovk@rhettinger@andersk@pfmoore@funkyfuture@erlend-aasland@layday