Python equivilent of pack()?
Fred L. Drake, Jr.
fdrake at acm.org
Tue Aug 24 15:19:54 EDT 1999
Bit Nik writes:
> My question is this: is there a functional equivilent to the Perl pack()
> and unpack() functions in Python? Or even better, is there an easier way
> to do what I want with Python? If not, how many people think this would be
Take a look at the struct module; the pack() and unpack() functions
are exactly what you're looking for!
(What names were you looking up in the index of the Library
Reference? I'll add them to the index if they make sense to others.)
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
Corporation for National Research Initiatives
More information about the Python-list
mailing list