[Python-checkins] peps: update pep with ruling by GvR on randbelow, link to bitbucket repo
steven.daprano
python-checkins at python.org
Sun Oct 25 19:37:31 EDT 2015
https://hg.python.org/peps/rev/c430dcdd4208
changeset: 6121:c430dcdd4208
user: Steven D'Aprano <steve+python at pearwood.info>
date: Sun Oct 25 17:29:35 2015 +1100
summary:
update pep with ruling by GvR on randbelow, link to bitbucket repo
files:
pep-0506.txt | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/pep-0506.txt b/pep-0506.txt
--- a/pep-0506.txt
+++ b/pep-0506.txt
@@ -129,7 +129,7 @@
- A function for choosing items from a sequence, ``secrets.choice``.
- A function for generating an integer within some range, such as
- ``secrets.randrange`` or ``secrets.randint``.
+ ``secrets.randrange`` or ``secrets.randint`` [#]_.
- A function for generating a given number of random bits and/or bytes
as an integer.
- A similar function which returns the value as a hex digit string.
@@ -176,7 +176,7 @@
The ``secrets`` module itself will be pure Python, and other Python
implementations can easily make use of it unchanged, or adapt it as
-necessary.
+necessary. An implementation can be found on BitBucket [#]_.
Default arguments
~~~~~~~~~~~~~~~~~
@@ -377,12 +377,18 @@
module. Words do not begin to express how much I am looking forward to
this.
+.. [#] After considerable discussion, Guido ruled that the module will instead
+ provide a function, ``randbelow``. See
+ http://code.activestate.com/lists/python-dev/138375/
+
.. [#] https://mail.python.org/pipermail/python-ideas/2015-September/036271.html
.. [#] https://mail.python.org/pipermail/python-ideas/2015-September/036350.html
.. [#] https://github.com/pyca/cryptography/issues/2347
+.. [#] https://bitbucket.org/sdaprano/secrets
+
.. [#] https://mail.python.org/pipermail/python-ideas/2015-September/036517.html
https://mail.python.org/pipermail/python-ideas/2015-September/036515.html
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list