Hello,
This is my first post on python mailing list. I've working in code
which must run on python 2 and python 3. I am using array.array as
data buffers. I am stuck with the following code line, which works on
Python 2, but not on Python 3.1.2:
import array
array.array('B', 'test')
Traceback
On Sat, Dec 11, 2010 at 5:32 PM, wander.lairson
wander.lair...@gmail.com wrote:
Hello,
This is my first post on python mailing list. I've working in code
which must run on python 2 and python 3. I am using array.array as
data buffers. I am stuck with the following code line, which works on
The `array` module's handling of strings changed as well. Reading the
Python 3 docs @ http://docs.python.org/dev/library/array.html , we
find (all emphases added):
class array.array(typecode[, initializer])
[...]
If given a list or string, the initializer is passed to the new
array’s