Casey Bralla on 24 Feb 2014 05:00:28 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Python Byte Array Question |
Aha! yes. I didn't count the entries, but this is supposed to be an 8-byte array. I believe you are correct about the "q" being another byte. Thanks! > =>I'm struggling with Python byte arrays. When I print this particular > array, =>I get this display: > => > =>bytearray(b'\x03\x04\x01\xec\x00\x0fq\xe5') > => > =>I understand that these are hex digits, separated by the "\", but what the > =>heck does "x0fq" mean??? > => > =>TIA! > > I believe it means a 0x0f byte followed by a 0x71 byte, which is the > ASCII lower case "q". > -- Casey Bralla Chief Nerd in Residence The NerdWorld Organisation www.NerdWorld.org ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug