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
|
- From: Casey Bralla <MailList@nerdworld.org>
- To: plug@lists.phillylinux.org
- Subject: [PLUG] Python Byte Array Question
- Date: Mon, 24 Feb 2014 07:51:44 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1393246306; bh=TQ3u2y2jTvyBvA6059QtCeWuRnDLAtxm0RlbgQ6uQ00=; h=Received:Received:Received:Received:Received:From:To:Subject:Date: Message-ID:MIME-Version:Content-Type; b=K/YbESE8LYxAe+s5Yezq8i5NRe5r/Xja1HIYgPI5NZtZ2ifZ7jHwoqhhHJrZgvBuu g6/BpvLrpfXPXN6iHugCCWb50duhXkRU0aPgnlZf/MvtPetoRYwd79rehliR5njil9 +n3XH+QK9XtaXprx7LlaBk8zAtVMAqd3xMql+QpwMKWDakxm8JkXS73RL5Pph6JGdd JamNbrF7i/8ZrpjzshH13OXAgHUzzeb3cWYjb/Mk3jRl/ImdLNlpDtYYJ+IEm492vr fv14R30GlIAYKPTsSpgE2DJEOtDd0s4hkwjHGsUsKVfXz4Rthj9HcobCvqI9IeY0su CCtx2SAi8qEUQ==
- Organization: The NerdWorld Organisation
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: "plug" <plug-bounces@lists.phillylinux.org>
- User-agent: KMail/4.12.2 (Linux/3.13.3-gentoo; KDE/4.12.2; x86_64; ; )
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