vibgyorbits wrote:

l=map(lambda x: '%02x' %ord(x),d)
s=string.join(l,sep='')

PS#. Endedup learning little bit of Lambda functions. :-)

That's so 2007...

The 2.5-esque way to write that is

s = ''.join('%02x' % ord(x) for x in d)

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to