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 steven.daprano
Recipients Lennart Grahl, docs@python, steven.daprano
Date 2016-05-25.16:23:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464193429.56.0.927592994042.issue27124@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 3.x, 'a' is just as much a Unicode string as 'ä'. I agree that binascii.a2b_hex should raise ValueError for argument 'ä', or ';' for that matter, as they are invalid values. There's an inconsistency in why some invalid characters raise ValueError and some raise binascii.Error. But since binascii.Error is a subclass of ValueError, it probably doesn't matter that much, so long as the documentation is clear.
History
Date User Action Args
2016-05-25 16:23:49steven.dapranosetrecipients: + steven.daprano, docs@python, Lennart Grahl
2016-05-25 16:23:49steven.dapranosetmessageid: <1464193429.56.0.927592994042.issue27124@psf.upfronthosting.co.za>
2016-05-25 16:23:49steven.dapranolinkissue27124 messages
2016-05-25 16:23:49steven.dapranocreate