Kaydet (Commit) 59160706 authored tarafından Fred Drake's avatar Fred Drake

Somewhat updated, but not checked for everything (just the stuff I was using).

üst 251c9fc6
...@@ -31,12 +31,12 @@ The available exception and functions in this module are: ...@@ -31,12 +31,12 @@ The available exception and functions in this module are:
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{compress}{string\optional{, level}} \begin{funcdesc}{compress}{string\optional{, level}}
Compresses the data in \var{string}, returning a string contained Compresses the data in \var{string}, returning a string contained
compressed data. \var{level} is an integer from \code{1} to \code{9} compressed data. \var{level} is an integer from \code{1} to
controlling the level of compression; \code{1} is fastest and produces \code{9} controlling the level of compression; \code{1} is fastest
the least compression, \code{9} is slowest and produces the most. The and produces the least compression, \code{9} is slowest and produces
default value is \code{6}. Raises the \exception{error} the most. The default value is \code{6}. Raises the
exception if any error occurs. \exception{error} exception if any error occurs.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{compressobj}{\optional{level}} \begin{funcdesc}{compressobj}{\optional{level}}
...@@ -59,17 +59,18 @@ exception if any error occurs. ...@@ -59,17 +59,18 @@ exception if any error occurs.
should not be used for authentication or digital signatures. should not be used for authentication or digital signatures.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{decompress}{string} \begin{funcdesc}{decompress}{string\optional{, wbits\optional{, buffsize}}}
Decompresses the data in \var{string}, returning a string containing Decompresses the data in \var{string}, returning a string containing
the uncompressed data. Raises the \exception{error} exception if any the uncompressed data. The \var{wbits} parameter controls the size of
error occurs. the window buffer. If \var{buffsize} is given, it is used as the
initial size of the output buffer. Raises the \exception{error}
exception if any error occurs.
\end{funcdesc} \end{funcdesc}
\begin{funcdesc}{decompressobj}{\optional{wbits}} \begin{funcdesc}{decompressobj}{\optional{wbits}}
Returns a compression object, to be used for decompressing data streams Returns a compression object, to be used for decompressing data
that won't fit into memory at once. The \var{wbits} parameter streams that won't fit into memory at once. The \var{wbits}
controls the size of the window buffer; usually this can be left parameter controls the size of the window buffer.
alone.
\end{funcdesc} \end{funcdesc}
Compression objects support the following methods: Compression objects support the following methods:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment