Re: [pyusb-users] Significance of 'B' Character in Data Arrays

2014-09-30 Thread Jared Contrascere
Thanks, Steve! On Tue, Sep 30, 2014 at 12:07 AM, Steven Michalske smichal...@gmail.com wrote: Jared, You were close, 8.6 of the docs is what you were looking for. See https://docs.python.org/2/library/array.html for full description of the python array standard library module. If you

[pyusb-users] Significance of 'B' Character in Data Arrays

2014-09-29 Thread Jared Contrascere
Hello! I've managed to read data! At this point, I need to decipher it. I wanted to confirm my suspicion that the B in the following array: array('B', [3, 4, 2, 0, 22, 0]) Signifies that an unsigned char is being received from the backend library, similar to what is seen in the table section

Re: [pyusb-users] Significance of 'B' Character in Data Arrays

2014-09-29 Thread Steven Michalske
Jared, You were close, 8.6 of the docs is what you were looking for. See https://docs.python.org/2/library/array.html for full description of the python array standard library module. If you don't have a need to run python 2.7, I suggest using Python 3 it copes with bytes and strings more