Python Library Reference
Previous: Up: 12.3 bz2 Next:

12.3.3 One-shot (de)compression

One-shot compression and decompression is provided through the compress() and decompress() functions.

compress( data[, compresslevel])
Compress data in one shot. If you want to compress data sequentially, use an instance of BZ2Compressor instead. The compresslevel parameter, if given, must be a number between 1 and 9; the default is 9.

decompress( data)
Decompress data in one shot. If you want to decompress data sequentially, use an instance of BZ2Decompressor instead.

Python Library Reference
Previous: Up: 12.3 bz2 Next:

Release 2.5, documentation updated on 19th September, 2006.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /