Gary Duzan on 24 Feb 2014 04:57:13 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Python Byte Array Question


In Message <1943582.sPnkJ4Cxk2@m5>,
   Casey Bralla <MailList@nerdworld.org>wrote:

=>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".

					Gary Duzan


___________________________________________________________________________
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