converting data to hex

Paul Rubin phr-n2003b at
Fri Jan 31 19:49:57 CET 2003

Mark Harrison <mh at> writes:
> >    value = tuple(map(ord,
> 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

    import array
    value = array.array('B',

More information about the Python-list mailing list