Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(268075)

Unified Diff: Doc/library/os.rst

Issue 27778: PEP 524: Add os.getrandom()
Patch Set: Created 2 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/os.rst Tue Sep 20 23:00:59 2016 +0200
+++ b/Doc/library/os.rst Tue Sep 20 23:06:42 2016 +0200
@@ -3953,6 +3953,14 @@ Random numbers
following values ORed together: :py:data:`os.GRND_RANDOM` and
:py:data:`GRND_NONBLOCK`.
+ The function can raise an :exc:`OSError` exception with the error number
+ :data:`errno.ENOSYS`` if the Linux kernel does not support the
Martin Panter 2016/09/21 01:07:08 Double back-tick should probably be single. Same f
+ :c:func:`getrandom` syscall.
+
+ The function can raise an :exc:`OSError` exception with the error number
+ :data:`errno.EPERM`` if the :c:func:`getrandom` syscall is blocked, by a
+ SECCOMP policy for example.
+
See also the `Linux getrandom() manual page
<http://man7.org/linux/man-pages/man2/getrandom.2.html>`_.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+