2011/2/28 Sarah Messer <ikust...@yahoo.com> > I'm sorry, Wander - I seem to be missing some things which are obvious to > you. > > Which buffer has heterogeneous data? If I use > > locstr='\x01\x01\xfe\x00\x07\x00\x00\x00\x01\x00\x00\x00loc > all\x00\x00\x00' > for x in range(len(locstr)): > type(locstr[x]) >
This in low level stuff is a buffer of buffers. Try this: ''.join(locstr) I guess this should work. [snip] > > -- Best Regards, Wander Lairson Costa LCoN - Laboratório de Computação Natural - Natural Computing Laboratory (http://www.mackenzie.com.br/lcon.html) Programa de Pós-Graduação em Engenharia Elétrica (PPGEE) Faculdade de Computação e Informática (FCI) Universidade Presbiteriana Mackenzie - SP - Brazil
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users