diff options
author | Barry Warsaw <barry@python.org> | 2000-08-15 06:07:13 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2000-08-15 06:07:13 +0000 |
commit | e977c210cbadf5d4a91eefa94b9b10da484f6ef1 (patch) | |
tree | 77d4b141b2ac807650dd6b6a5cdb9980066ac792 /Python/pythonrun.c | |
parent | 57b808d21a7651b303bf22264c4bc47824ab3b51 (diff) | |
download | cpython-e977c210cbadf5d4a91eefa94b9b10da484f6ef1.tar.gz cpython-e977c210cbadf5d4a91eefa94b9b10da484f6ef1.zip |
After a brief conversation and code review with TP, adding two very
commonly used functions to convert an arbitrary binary string into
a hexadecimal digit representation and back again. These are often
(and often differently) implemented in Python. Best to have one
common fast implementation. Specifically,
binascii_hexlify(): a.k.a. b2a_hex() to return the hex representation
of binary data.
binascii_unhexlify(): a.k.a. a2b_hex() to do the inverse conversion
(hex digits to binary data). The argument must have an even length,
and must contain only hex digits, otherwise a TypeError is raised.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions