Re: [Python-Dev] Readability of hex strings (Was: Use of coding cookie in 3.x stdlib)
July 26, 2010
8:42 p.m.
Am 26.07.2010 20:42, schrieb Alexandre Vassalotti:
[+Python-ideas -Python-Dev]
import binascii def h(s): return binascii.unhexlify("".join(s.split()))
h("DE AD BE EF CA FE BA BE")
In Py3k: h = bytes.fromhex Georg -- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out.
5296
Age (days ago)
5296
Last active (days ago)
0 comments
1 participants
participants (1)
-
Georg Brandl