Steven D'Aprano <st...@remove-this-cybersource.com.au> writes:
> s = "g%$f yg\n1\05"
> Is this the best way, or have I missed some standard library function?

It is really a shame that there is not a standard library function
for this.  I usually do it using hexadecimal conversion:

  d = int(s.encode('hex'), 16)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to