[Tutor] byte[] array
Kent Johnson
kent37 at tds.net
Wed Oct 4 04:22:26 CEST 2006
gert wohlgemuth wrote:
> Hi,
>
> I'm used to java byte arrays (byte[]) and need the same type in python,
> cause we have a couple of established web services, which return a byte[] or
> take a byte[] as parameter.
>
> As anybody an idea how I can do this in python?
A string can be used as a byte array. The struct module can help if you
need to pack and unpack binary values into a string.
Kent
More information about the Tutor
mailing list