[Python-checkins] doc: Clarify os.urandom return type (GH-30282)

miss-islington webhook-mailer at python.org
Wed Jan 19 16:58:18 EST 2022


https://github.com/python/cpython/commit/ee077500888ca5c1360bbd224b3af4a0fbbf6e02
commit: ee077500888ca5c1360bbd224b3af4a0fbbf6e02
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-01-19T13:58:13-08:00
summary:

doc: Clarify os.urandom return type (GH-30282)


Other descriptions in the same file also use 'bytestring' to refer to bytes objects
(cherry picked from commit 4b99803b861e58eb476a7a30e2e8aacdec5df104)

Co-authored-by: Florian Bruhin <me at the-compiler.org>

files:
M Doc/library/os.rst

diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 629a32f1b63e7..5b2c2e0d0f2d0 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -4869,7 +4869,7 @@ Random numbers
 
 .. function:: urandom(size)
 
-   Return a string of *size* random bytes suitable for cryptographic use.
+   Return a bytestring of *size* random bytes suitable for cryptographic use.
 
    This function returns random bytes from an OS-specific randomness source.  The
    returned data should be unpredictable enough for cryptographic applications,



More information about the Python-checkins mailing list