Hendrik van Rooyen wrote:
Terry Reedy:
Which essentially is the bytearray type of 3.0.
How does it differ from plain old array.array(b,”The quick brown fox”)?
The typecode must be quoted as 'b'.
In 3.0, strings become unicode, so an added b prefix is needed.
>>> import array
>>> a = arr
"Gabriel Genellina":
>To avoid altering the equilibrium of the whole universe, use
>ctypes.create_string_buffer:
>http://python.net/crew/theller/ctypes/tutorial.html#fundamental-data-types
Thanks Gabriel – looks like I really have to spend more time with that
excellent document.
Patrick Maupin