[Tutor] how to transform the data as below?

Peter Otten __peter__ at web.de
Fri Mar 18 15:09:29 EDT 2016


Alan Gauld wrote:

> On 18/03/16 15:31, Peter Otten wrote:
> 
>> I suppose he thinks that hexadecimal and binary is the same. The data you
>> showed is binary. For example the following sequence of bytes
>> 
>> 9 1 120 1 253 2
>> 
>> is displayed as the bytestring
>> 
>> b'\t\x01x\x01\xfd'
> 
> What happened to the 2 at the end?
> Shouldn't it be:
> 
> b'\t\x01x\x01\xfd\x02'

Yes, sorry.



More information about the Tutor mailing list