[Python-Dev] bytes.from_hex() [Was: PEP 332 revival in coordination with pep 349?] (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Wed Feb 15 20:37:17 CET 2006


Jason Orendorff wrote:

expectedmd5hash = bytes.fromhex('5c535024cac5199153e3834fe5c92e6a')

This looks good, although it duplicates

expected_md5_hash = binascii.unhexlify('5c535024cac5199153e3834fe5c92e6a')

Regards, Martin



More information about the Python-Dev mailing list