mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
Rename struct.pack_to to struct.pack_into as changed in revision 46642.
This commit is contained in:
parent
b142c63fd9
commit
c7605270b4
1 changed files with 1 additions and 1 deletions
|
@ -1653,7 +1653,7 @@ year, number, name = s.unpack(data)
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
You can also pack and unpack data to and from buffer objects directly
|
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})}
|
\var{v2}, ...)} and \method{unpack_from(\var{buffer}, \var{offset})}
|
||||||
methods. This lets you store data directly into an array or a
|
methods. This lets you store data directly into an array or a
|
||||||
memory-mapped file.
|
memory-mapped file.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue