[Python-checkins] bpo-42931: randbytes missing from random.__all__ (GH-24219) (GH-24225)

rhettinger webhook-mailer at python.org
Fri Jan 15 13:22:27 EST 2021


https://github.com/python/cpython/commit/17c1f0c8cb96637c36548edf6e4570ac7564004b
commit: 17c1f0c8cb96637c36548edf6e4570ac7564004b
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: rhettinger <rhettinger at users.noreply.github.com>
date: 2021-01-15T10:21:52-08:00
summary:

bpo-42931: randbytes missing from random.__all__ (GH-24219) (GH-24225)

files:
A Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst
M Lib/random.py

diff --git a/Lib/random.py b/Lib/random.py
index a6454f520df0a..190df6a8c3a56 100644
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -77,6 +77,7 @@
     "lognormvariate",
     "normalvariate",
     "paretovariate",
+    "randbytes",
     "randint",
     "random",
     "randrange",
diff --git a/Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst b/Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst
new file mode 100644
index 0000000000000..01f8094944f70
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-01-15-00-23-50.bpo-42931.QD6U2B.rst
@@ -0,0 +1 @@
+Add :func:`randbytes` to ``random.__all__``.



More information about the Python-checkins mailing list