-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
[3.13] gh-123968: Fix lower bound for python -m random --float
(GH-123971)
#124009
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
Conversation
…onGH-123971) (cherry picked from commit a362c41) Co-authored-by: Anders Kaseorg <andersk@mit.edu>
Given that this is a new feature, yeah, let's get the fix into 3.13.0 so people don't end up relying on the less desirable behaviour. |
The current docs do not reflect this fix, yet:
|
It's because this PR did not update the docs. @mahlzahn, would you like to create a PR to fix it? This is the file to edit: No need for a news entry, and we can reuse issue number gh-123968 for the PR title prefix. |
…onGH-124517) * fix -f/--float command line option description See pythongh-123968 pythongh-124009 * Update Doc/library/random.rst --------- (cherry picked from commit f8651a2) Co-authored-by: Robert Wolff <mahlzahn@posteo.de> Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
…124517) (#124523) gh-123968: fix -f/--float command line option description (GH-124517) * fix -f/--float command line option description See gh-123968 gh-124009 * Update Doc/library/random.rst --------- (cherry picked from commit f8651a2) Co-authored-by: Robert Wolff <mahlzahn@posteo.de> Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Fixes #123968.
(cherry picked from commit a362c41)
Co-authored-by: Anders Kaseorg andersk@mit.edu
python -m random --float N
should pick a float between 0 and N, not 1 and N #123968