# HG changeset patch # Parent e86d0ef45e21e578093c92fb0d197d624b7cff7f Document that max_length=0 is not to be used diff -r e86d0ef45e21 -r d2048bd003fb Doc/library/zlib.rst --- a/Doc/library/zlib.rst Fri Jan 09 00:13:39 2015 +0100 +++ b/Doc/library/zlib.rst Fri Jan 09 00:24:52 2015 +0000 @@ -230,7 +230,7 @@ :meth:`decompress` method. Some of the input data may be preserved in internal buffers for later processing. - If the optional parameter *max_length* is supplied then the return value will be + If the optional parameter *max_length* is non-zero then the return value will be no longer than *max_length*. This may mean that not all of the compressed input can be processed; and unconsumed data will be stored in the attribute :attr:`unconsumed_tail`. This bytestring must be passed to a subsequent call to