Skip to content

Conversation

@zipperer
Copy link
Contributor

@zipperer zipperer commented Nov 8, 2023

This commit adds a detail to a comment about random.random(). Before this commit, a comment says random.random() returns a random float. After this commit, that comment says random.random() returns a random float from interval (0.0, 1.0].

I propose to add this detail to the comment because it clarifies (for me) what the function returns.

However, this comment occurs in a 'brief tour', and the guide for a brief tour can be terse and expect the reader to go read the relevant page (e.g. in this case, https://docs.python.org/3/library/random.html#random.random) if the reader wants to know more than an overview offers. Given that view, the detail I add in this commit is not warranted.


📚 Documentation preview 📚: https://cpython-previews--111868.org.readthedocs.build/

@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Nov 8, 2023
Missing article
@rhettinger rhettinger merged commit 2f2a0a3 into python:main Nov 9, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
---------

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
---------

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants