Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
22a9dc88
Commit
22a9dc88
authored
Apr 01, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #1459631: documnent zlib.Decompress.flush() length parameter.
parent
dcfdae7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
Doc/lib/libzlib.tex
Doc/lib/libzlib.tex
+4
-1
Modules/zlibmodule.c
Modules/zlibmodule.c
+3
-1
No files found.
Doc/lib/libzlib.tex
View file @
22a9dc88
...
...
@@ -166,11 +166,14 @@ continue. If \var{max_length} is not supplied then the whole input is
decompressed, and
\member
{
unconsumed
_
tail
}
is an empty string.
\end{methoddesc}
\begin{methoddesc}
[Decompress]
{
flush
}{}
\begin{methoddesc}
[Decompress]
{
flush
}{
\optional
{
length
}
}
All pending input is processed, and a string containing the remaining
uncompressed output is returned. After calling
\method
{
flush()
}
, the
\method
{
decompress()
}
method cannot be called again; the only realistic
action is to delete the object.
The optional parameter
\var
{
length
}
sets the initial size of the
output buffer.
\end{methoddesc}
\begin{seealso}
...
...
Modules/zlibmodule.c
View file @
22a9dc88
...
...
@@ -654,7 +654,9 @@ PyZlib_flush(compobject *self, PyObject *args)
}
PyDoc_STRVAR
(
decomp_flush__doc__
,
"flush() -- Return a string containing any remaining decompressed data.
\n
"
"flush( [length] ) -- Return a string containing any remaining
\n
"
"decompressed data. length, if given, is the initial size of the
\n
"
"output buffer.
\n
"
"
\n
"
"The decompressor object can no longer be used after this call."
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment