Skip to content

[3.14] gh-161452: Fix python -m random with a non-positive integer input (GH-161453) - #161942

Merged
vstinner merged 1 commit into
python:3.14from
miss-islington:backport-11eed55-3.14
Nov 13, 2026
Merged

vstinner merged 1 commit into
python:3.14from
miss-islington:backport-11eed55-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Fix the random command-line interface printing a random float for a zero
or negative integer input instead of failing like --integer does.
(cherry picked from commit 11eed55)

Co-authored-by: Andrés Delfino adelfino@gmail.com
Co-authored-by: Claude Opus 5.5 noreply@anthropic.com
Co-authored-by: Victor Stinner vstinner@python.org

…nput (pythonGH-161453)

Fix the random command-line interface printing a random float for a zero
or negative integer input instead of failing like --integer does.
(cherry picked from commit 11eed55)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner
vstinner enabled auto-merge (squash) November 13, 2026 16:17
@vstinner
vstinner merged commit 65dfc16 into python:3.14 Nov 13, 2026
52 checks passed
@miss-islington
miss-islington deleted the backport-11eed55-3.14 branch November 13, 2026 17:00
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.

3 participants