ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Library Reference
7. Optional Operating System Services
7.17 bz2 -- Compression compatible with bzip2
7.17.3 One-shot (de)compression

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Library Reference >> 7. Optional Operating System Services >> 7.17 bz2 -- Compression compatible with bzip2
ActivePython 2.4 documentation

7.17.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.
See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved