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 luiz.poleto
Recipients Lennart Grahl, docs@python, luiz.poleto, steven.daprano
Date 2016-05-26.03:04:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464231865.98.0.0245399992994.issue27124@psf.upfronthosting.co.za>
In-reply-to
Content
binascii.Error is used throughout the module for most of the validations, with only a few of them using TypeError/ValueError. I guess it would make more sense to update these to raise binascii.Error (unless they were left on purpose) to make it consistent with the rest of the module, although changing from TypeError to binascii.Error might break existing code.

Anyway, since a2b_hex is currently raising binascii.Error for an odd-length input, the attached patch fixes the documentation to reflect it.
History
Date User Action Args
2016-05-26 03:04:26luiz.poletosetrecipients: + luiz.poleto, steven.daprano, docs@python, Lennart Grahl
2016-05-26 03:04:25luiz.poletosetmessageid: <1464231865.98.0.0245399992994.issue27124@psf.upfronthosting.co.za>
2016-05-26 03:04:25luiz.poletolinkissue27124 messages
2016-05-26 03:04:25luiz.poletocreate