This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Theodore Tso, christian.heimes, dstufft, larry, lemburg, martin.panter, ncoghlan, vstinner
Date 2016-06-09.08:02:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465459335.61.0.252054849071.issue27266@psf.upfronthosting.co.za>
In-reply-to
Content
> I dislike the “block” term for a different reason: it suggests raising EAGAIN (= BlockingIOError). But the proposal here is actually to generate data with low entropy.

Since os.urandom() is part of the os module, yes, I'm suggesting to raise BlockingIOError. The caller would be responsible to handle this error and make a choice. For example, random.py can reuse its fallback on time.time().
History
Date User Action Args
2016-06-09 08:02:15vstinnersetrecipients: + vstinner, lemburg, ncoghlan, larry, christian.heimes, martin.panter, dstufft, Theodore Tso
2016-06-09 08:02:15vstinnersetmessageid: <1465459335.61.0.252054849071.issue27266@psf.upfronthosting.co.za>
2016-06-09 08:02:15vstinnerlinkissue27266 messages
2016-06-09 08:02:15vstinnercreate