buffer_info error
ashtonn@gmail.com
doodle4 at gmail.com
Fri May 20 16:01:11 EDT 2005
Hello,
buffer_info is giving the following error:
AttributeError: 'str' object has not attribute 'buffer_info'
Here's the code snippet...
dest = 'FFFFFFFFFFFF'
src = '0123FFFFFFFF'
data = array('B', '\0' * 256)
data1 = ''.join([dest, src]
print data1
>>FFFFFFFFFFFF0123FFFFFFFF
print data.buffer_info()[0]... works
print data1.buffer_info()[0]....error
This output is a string and hence i believe i get the above error. Any
ideas?
Thanks,
-Ashton
More information about the Python-list
mailing list