Message125318
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 |
|
Date |
User |
Action |
Args |
2011-01-04 13:49:47 | pitrou | set | recipients:
+ pitrou, nijel |
2011-01-04 13:49:47 | pitrou | set | messageid: <1294148987.42.0.913332342643.issue10824@psf.upfronthosting.co.za> |
2011-01-04 13:49:42 | pitrou | link | issue10824 messages |
2011-01-04 13:49:42 | pitrou | create | |
|