bpo-33292: Fix secrets.randbelow docstring by nixawk · Pull Request #6497 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@nixawk

Copy link Copy Markdown

@nixawk nixawk commented

Apr 17, 2018

edited

Loading

Please fix

"""Return a random int in the range [0, n)."""

to

"""Return a random integer x satisfying 0 <= x < n."""

https://bugs.python.org/issue33292

@nixawk

Copy link Copy Markdown

Author

nixawk commented

Apr 17, 2018

Sorry for the interval notation syntax. It's not a valid pr.

@nixawk nixawk closed this

Apr 17, 2018

@nixawk nixawk reopened this

Apr 18, 2018

@csabella

Copy link Copy Markdown

Contributor

Thank you for the suggestion. The bug tracker issue was closed as 'not a bug', so this PR should be closed as well. The current interval notation is acceptable.

@csabella csabella closed this

May 18, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@nixawk @csabella @the-knights-who-say-ni @bedevere-bot