A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-February/061041.html below:

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

[Python-Dev] bytes.from_hex() [Was: PEP 332 revival in coordination with pep 349?] [Python-Dev] bytes.from_hex() [Was: PEP 332 revival in coordination with pep 349?]Thomas Heller theller at python.net
Wed Feb 15 20:21:03 CET 2006
Jason Orendorff wrote:
> Instead of byte literals, how about a classmethod bytes.from_hex(), which
> works like this:
> 
>   # two equivalent things
>   expected_md5_hash = bytes.from_hex('5c535024cac5199153e3834fe5c92e6a')

I hope this will also be equivalent:
>   expected_md5_hash = bytes.from_hex('5c 53 50 24 ca c5 19 91 53 e3 83 4f e5 c9 2e 6a')

Thomas

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4