From: Jeff E. <jem...@fr...> - 2005-05-13 14:44:23
|
Use jarray and 'b': >>> import jarray >>> aByteArray = jarray.zeros(100,'b') Integers are converted to bytes automatically on assignment. >>> aByteArray[0] = 300 >>> print aByteArray[0] 44 c c wrote: > Hi, > > How can we use byte arrays in Jython? |