converting data to hex
phr-n2003b at NOSPAMnightsong.com
Fri Jan 31 19:49:57 CET 2003
Mark Harrison <mh at pixar.com> writes:
> > value = tuple(map(ord,md5.new(myStr).digest()))
> Most excellent... It was only the ord that I originally
> thought I needed, but tuple/map is so slick that now I don't
> feel guilty about asking such a dumb question.
What are you really trying to do here?
Maybe what you want is more like
value = array.array('B', md5.new(myStr).digest())
More information about the Python-list