[pypy-svn] r46919 - pypy/dist/pypy/module/zlib
arigo at codespeak.net
arigo at codespeak.net
Thu Sep 27 09:51:31 CEST 2007
Author: arigo
Date: Thu Sep 27 09:51:31 2007
New Revision: 46919
Modified:
pypy/dist/pypy/module/zlib/__init__.py
Log:
Module docstring.
Modified: pypy/dist/pypy/module/zlib/__init__.py
==============================================================================
--- pypy/dist/pypy/module/zlib/__init__.py (original)
+++ pypy/dist/pypy/module/zlib/__init__.py Thu Sep 27 09:51:31 2007
@@ -8,6 +8,21 @@
class Module(MixedModule):
+ """\
+The functions in this module allow compression and decompression using the
+zlib library, which is based on GNU zip.
+
+adler32(string[, start]) -- Compute an Adler-32 checksum.
+compress(string[, level]) -- Compress string, with compression level in 1-9.
+compressobj([level]) -- Return a compressor object.
+crc32(string[, start]) -- Compute a CRC-32 checksum.
+decompress(string,[wbits],[bufsize]) -- Decompresses a compressed string.
+decompressobj([wbits]) -- Return a decompressor object.
+
+'wbits' is window buffer size.
+Compressor objects support compress() and flush() methods; decompressor
+objects support decompress() and flush()."""
+
interpleveldefs = {
'crc32': 'interp_zlib.crc32',
'adler32': 'interp_zlib.adler32',
More information about the Pypy-commit
mailing list