Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
decompress(data[, maxlength]) -- Decompress the data, returning a string containing the decompressed data. If the string has been compressed without an EOS marker, you must provide the maximum length as keyword parameter.
decompress(data, bufsize[, maxlength]) -- Decompress the data using an initial output buffer of size bufsize. If the string has been compressed without an EOS marker, you must provide the maximum length as keyword parameter.

src/p/y/pylzma-HEAD/py7zlib.py   pylzma(Download)
                for idx in range(len(streams.packinfo.packsizes)):
                    tmp = file.read(streams.packinfo.packsizes[idx])
                    data += pylzma.decompress(props+tmp, maxlength=folder.unpacksizes[idx])
 
                if folder.digestdefined:

src/p/y/pylzma-0.4.4/py7zlib.py   pylzma(Download)
                for idx in xrange(len(streams.packinfo.packsizes)):
                    tmp = file.read(streams.packinfo.packsizes[idx])
                    data += pylzma.decompress(props+tmp, maxlength=folder.unpacksizes[idx])
 
                if folder.digestdefined:

src/p/y/pylzma-HEAD/tests/test_pylzma.py   pylzma(Download)
    def test_decompression_eos(self):
        # test decompression with the end of stream marker
        decompressed = pylzma.decompress(self.plain_with_eos)
        self.assertEqual(decompressed, self.plain)
 
    def test_decompression_noeos(self):
        # test decompression without the end of stream marker
        decompressed = pylzma.decompress(self.plain_without_eos, maxlength=28)
            size = 1 << i
            original = generate_random(size)
            result = pylzma.decompress(pylzma.compress(original, eos=1))
            self.assertEqual(len(result), size)
            self.assertEqual(md5(original).hexdigest(), md5(result).hexdigest())
            size = 1 << i
            original = generate_random(size)
            result = pylzma.decompress(pylzma.compress(original, eos=0), maxlength=size)
            self.assertEqual(md5(original).hexdigest(), md5(result).hexdigest())
 
            outfile.write(compress.compress(data, 1))
        outfile.write(compress.flush())
        check = pylzma.decompress(outfile.getvalue())
        self.assertEqual(check, self.plain)