Antoine Pitrou <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue10824>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to