Message266368
When using binascii.a2b_hex (or binascii.unhexlify) and the argument is invalid, the doc states that it should raise a TypeError for invalid arguments (e.g. passing an odd-length string).
However, it does raise binascii.Error instead of TypeError:
try:
binascii.a2b_hex('a')
except Exception as exc:
print(type(exc)) |
|
Date |
User |
Action |
Args |
2016-05-25 15:42:31 | Lennart Grahl | set | recipients:
+ Lennart Grahl, docs@python |
2016-05-25 15:42:31 | Lennart Grahl | set | messageid: <1464190951.12.0.309980767012.issue27124@psf.upfronthosting.co.za> |
2016-05-25 15:42:31 | Lennart Grahl | link | issue27124 messages |
2016-05-25 15:42:31 | Lennart Grahl | create | |
|