Showing content from http://mail.python.org/pipermail/python-dev/attachments/20060223/09dff5c6/attachment.html below:
On 2/22/06, <b class="gmail_sendername">Neil Schemenauer</b> <<a href="mailto:nas@arctrix.com">nas@arctrix.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
@classmethod<br> def fromhex(self, data):<br> data = re.sub(r'\s+', '', data)<br> return bytes(binascii.unhexlify(data))</blockquote><div><br>If it's to be a classmethod, I guess that should be "return self(
binascii.unhexlify(data))".<br></div></div><br>-j<br>
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