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 r.david.murray
Recipients ideasman42, r.david.murray, rhettinger
Date 2016-05-23.23:07:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464044860.48.0.710221532034.issue27096@psf.upfronthosting.co.za>
In-reply-to
Content
It seems reasonable to me, but I'm not the one to sign off on something like this.  I've nosied someone who will have an opinion :)

Would doing:

    mybytes = bytes(random.randint(0, 255) for i in range(size))

be faster enough to be workable?  I suppose that might build a list under the covers...maybe preallocating a bytearray and filling it with ints would work better.
History
Date User Action Args
2016-05-23 23:07:40r.david.murraysetrecipients: + r.david.murray, rhettinger, ideasman42
2016-05-23 23:07:40r.david.murraysetmessageid: <1464044860.48.0.710221532034.issue27096@psf.upfronthosting.co.za>
2016-05-23 23:07:40r.david.murraylinkissue27096 messages
2016-05-23 23:07:40r.david.murraycreate