Message266371
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. |
|
Date |
User |
Action |
Args |
2016-05-25 16:23:49 | steven.daprano | set | recipients:
+ steven.daprano, docs@python, Lennart Grahl |
2016-05-25 16:23:49 | steven.daprano | set | messageid: <1464193429.56.0.927592994042.issue27124@psf.upfronthosting.co.za> |
2016-05-25 16:23:49 | steven.daprano | link | issue27124 messages |
2016-05-25 16:23:49 | steven.daprano | create | |
|