From: George Yoshida Date: Sun, 30 Jul 2006 16:37:37 +0000 (+0000) Subject: Rename struct.pack_to to struct.pack_into as changed in revision 46642. X-Git-Tag: v2.5b3~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7605270b422ae72e135263604d5136406169ec4;p=python Rename struct.pack_to to struct.pack_into as changed in revision 46642. --- diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index 73507cce3b..952f743f37 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -1653,7 +1653,7 @@ year, number, name = s.unpack(data) \end{verbatim} You can also pack and unpack data to and from buffer objects directly -using the \method{pack_to(\var{buffer}, \var{offset}, \var{v1}, +using the \method{pack_into(\var{buffer}, \var{offset}, \var{v1}, \var{v2}, ...)} and \method{unpack_from(\var{buffer}, \var{offset})} methods. This lets you store data directly into an array or a memory-mapped file.