Casey Bralla on 24 Feb 2014 04:51:51 -0800


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

[PLUG] Python Byte Array Question


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!


-- 

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