[Python-checkins] bpo-33783: Use proper class markup for random.Random docs (GH-7817) (GH-12859)

Victor Stinner webhook-mailer at python.org
Tue Apr 16 17:32:46 EDT 2019


https://github.com/python/cpython/commit/a6fce19968cd39dfbc2684f97ca3184d9996f61e
commit: a6fce19968cd39dfbc2684f97ca3184d9996f61e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2019年04月16日T23:32:32+02:00
summary:
bpo-33783: Use proper class markup for random.Random docs (GH-7817) (GH-12859)
Signed-off-by: Matthias Bussonnier <bussonniermatthias at gmail.com>
(cherry picked from commit 31e8d69bfe7cf5d4ffe0967cb225d2a8a229cc97)
Co-authored-by: Matthias Bussonnier <bussonniermatthias at gmail.com>
files:
M Doc/library/random.rst
diff --git a/Doc/library/random.rst b/Doc/library/random.rst
index 7d051e185429..42979ffbe38e 100644
--- a/Doc/library/random.rst
+++ b/Doc/library/random.rst
@@ -310,6 +310,11 @@ be found in any statistics text.
 Alternative Generator
 ---------------------
 
+.. class:: Random([seed])
+
+ Class that implements the default pseudo-random number generator used by the
+ :mod:`random` module.
+
 .. class:: SystemRandom([seed])
 
 Class that uses the :func:`os.urandom` function for generating random numbers


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /