<div dir="ltr">You can add me to the list of people who feel like disappearing.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 11, 2016 at 10:28 AM, Terry Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 6/11/2016 11:34 AM, Guido van Rossum wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In terms of API design, I'd prefer a flag to os.urandom() indicating a<br>
preference for<br>
- blocking<br>
- raising an exception<br>
- weaker random bits<br>
</blockquote>
<br></span>
+100 ;-)<br>
<br>
I proposed exactly this 2 days ago, 5 hours after Larry's initial post.<br>
<br>
'''<span class=""><br>
I think the 'new API' should be a parameter, not a new function. With just two choices, 'wait' = True/False  could work.  If 'raise an exception' were added, then<br>
'action (when good bits are not immediately available' =<br>
'return (best possible)' or<br>
'wait (until have good bits)' or<br>
'raise (CryptBitsNotAvailable)'<br>
<br>
In either case, there would then be the question of whether the default should match 3.5.0/1 or 3.4 and before.<br></span>
'''<br>
<br>
Deciding on this then might have saved some hurt feelings, to the point where two contributors feel like disappearing, and a release manager must feel the same.  In any case, Guido already picked 3.4 behavior as the default.  Can we agree and move on?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Terry Jan Reedy</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div>