[EMAIL PROTECTED] wrote:
> data = array('B', '\0' * 256)
> data1 = ''.join([dest, src]
> 
> 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?

Yes, you are entirely correct.  (Integers don't have "buffer_info" 
attributes either, and for that matter strings don't have an attribute 
called "fribble_frabble", in case you were thinking of trying that. ;-)

(That's a facetious reply, yes, because you gave no indication what you 
were trying to accomplish.  It's really hard to tell what you expected 
versus what you got, and why you got that is completely obvious to all 
of us, who can't read your mind.)

-Peter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to