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 vstinner
Date 2010-05-16.21:31:23
SpamBayes Score 0.09195933
Marked as misclassified No
Message-id <1274045484.85.0.763677080971.issue8737@psf.upfronthosting.co.za>
In-reply-to
Content
PySSL_RAND_add() uses PyArg_ParseTuple(args, "s#d:RAND_add", ...) and so converts implicitly str to bytes using UTF-8. I would prefer that this function only accepts bytes: the user will have to encode str to bytes *explicitly*.

Attached patch replace s# format by y# format.
History
Date User Action Args
2010-05-16 21:31:24vstinnersetrecipients: + vstinner
2010-05-16 21:31:24vstinnersetmessageid: <1274045484.85.0.763677080971.issue8737@psf.upfronthosting.co.za>
2010-05-16 21:31:23vstinnerlinkissue8737 messages
2010-05-16 21:31:23vstinnercreate