Extending struct.unpack

Tim Roberts timr at probo.com
Wed Jan 31 01:51:26 EST 2001


"Amritansh Raghav" <amritansh at mobilian.com> wrote:
>
>p.s (for more info - the buffer i want to unpack contains an ethernet
>address which is 6 bytes. currently i unpack it using 6B, but i would like
>to specify it as say E and have unpack return a 6byte long number)

What kind of Ethernet address is 6 bytes?  You mean a MAC address?  Those
aren't usually manipulated as a single 6-byte entity.
--
- Tim Roberts, timr at probo.com
  Providenza & Boekelheide, Inc.



More information about the Python-list mailing list