-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
More informative docstrings in the random module #109745
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
I think it may also be worth updating the documentation to include this information, to quickly refer to it without opening an interpreter. A |
FWIW here's session showing actual versus expected:
|
Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
Sorry, @rhettinger, I could not cleanly backport this to |
(cherry picked from commit 19bf398) Co-authored-by: Raymond Hettinger <[email protected]>
GH-109905 is a backport of this pull request to the 3.12 branch. |
@rhettinger -- what are your thoughts on including these data in the documentation for A |
@AA-Turner I don't think this needs to be in the main docs. It is more of an on-line reference. |
…109905) More informative docstrings in the random module (gh-109745) (cherry picked from commit 19bf398) Co-authored-by: Raymond Hettinger <[email protected]>
Add the expected mean and variance to the docstrings. It helps with understanding the parameters which is important because conventions vary. Also, it would save someone like me from having to look these up periodically.