Nits corrected by Fred

This commit is contained in:
Guido van Rossum 1996-09-27 17:11:24 +00:00
parent 3c602d7d0c
commit 3f247ade66
2 changed files with 24 additions and 6 deletions

View File

@ -138,6 +138,15 @@ form \code{unpack_\var{type}}, and take no arguments. They return the
unpacked object. The same caveats apply for \code{unpack_float} and unpacked object. The same caveats apply for \code{unpack_float} and
\code{unpack_double} as above. \code{unpack_double} as above.
\begin{funcdesc}{unpack_float}{}
Unpacks a single-precision floating point number.
\end{funcdesc}
\begin{funcdesc}{unpack_double}{}
Unpacks a double-precision floating point number, similarly to
\code{unpack_float}.
\end{funcdesc}
In addition, the following methods unpack strings, bytes, and opaque In addition, the following methods unpack strings, bytes, and opaque
data: data:
@ -152,7 +161,7 @@ Unpacks and returns a fixed length opaque data stream, similarly to
\code{unpack_fstring}. \code{unpack_fstring}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{pack_string}{} \begin{funcdesc}{unpack_string}{}
Unpacks and returns a variable length string. The length of the Unpacks and returns a variable length string. The length of the
string is first unpacked as an unsigned integer, then the string data string is first unpacked as an unsigned integer, then the string data
is unpacked with \code{unpack_fstring}. is unpacked with \code{unpack_fstring}.
@ -160,12 +169,12 @@ is unpacked with \code{unpack_fstring}.
\begin{funcdesc}{unpack_opaque}{} \begin{funcdesc}{unpack_opaque}{}
Unpacks and returns a variable length opaque data string, similarly to Unpacks and returns a variable length opaque data string, similarly to
\code{pack_string}. \code{unpack_string}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{unpack_bytes}{} \begin{funcdesc}{unpack_bytes}{}
Unpacks and returns a variable length byte stream, similarly to Unpacks and returns a variable length byte stream, similarly to
\code{pack_string}. \code{unpack_string}.
\end{funcdesc} \end{funcdesc}
The following methods support unpacking arrays and lists: The following methods support unpacking arrays and lists:

View File

@ -138,6 +138,15 @@ form \code{unpack_\var{type}}, and take no arguments. They return the
unpacked object. The same caveats apply for \code{unpack_float} and unpacked object. The same caveats apply for \code{unpack_float} and
\code{unpack_double} as above. \code{unpack_double} as above.
\begin{funcdesc}{unpack_float}{}
Unpacks a single-precision floating point number.
\end{funcdesc}
\begin{funcdesc}{unpack_double}{}
Unpacks a double-precision floating point number, similarly to
\code{unpack_float}.
\end{funcdesc}
In addition, the following methods unpack strings, bytes, and opaque In addition, the following methods unpack strings, bytes, and opaque
data: data:
@ -152,7 +161,7 @@ Unpacks and returns a fixed length opaque data stream, similarly to
\code{unpack_fstring}. \code{unpack_fstring}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{pack_string}{} \begin{funcdesc}{unpack_string}{}
Unpacks and returns a variable length string. The length of the Unpacks and returns a variable length string. The length of the
string is first unpacked as an unsigned integer, then the string data string is first unpacked as an unsigned integer, then the string data
is unpacked with \code{unpack_fstring}. is unpacked with \code{unpack_fstring}.
@ -160,12 +169,12 @@ is unpacked with \code{unpack_fstring}.
\begin{funcdesc}{unpack_opaque}{} \begin{funcdesc}{unpack_opaque}{}
Unpacks and returns a variable length opaque data string, similarly to Unpacks and returns a variable length opaque data string, similarly to
\code{pack_string}. \code{unpack_string}.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{unpack_bytes}{} \begin{funcdesc}{unpack_bytes}{}
Unpacks and returns a variable length byte stream, similarly to Unpacks and returns a variable length byte stream, similarly to
\code{pack_string}. \code{unpack_string}.
\end{funcdesc} \end{funcdesc}
The following methods support unpacking arrays and lists: The following methods support unpacking arrays and lists: