[issue10824] urandom should not block
Antoine Pitrou
report at bugs.python.org
Tue Jan 4 14:49:47 CET 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
This would change semantics of the library call, though.
I see two possible solutions:
- do nothing and let users tackle the issue if necessary (e.g. by calling open() themselves and using select() on the resulting fd)
- add an optional "blocking" parameter to os.urandom() that, if False, would return None when no data is available
----------
nosy: +pitrou
type: behavior -> feature request
versions: +Python 3.3 -Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10824>
_______________________________________
More information about the Python-bugs-list
mailing list