Website hosting service by Active-Venture.com
  

 Back to Index

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.
 

  

 

2002-2004 Active-Venture.com Webhosting Service

 

Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to http://python.org/doc/

 

Domain registration : Buy domain name or register domain name from $5.95/year only

 

Cheap domain registration : Register domain name or buy domain name, including free domain hosting services

 
  Active-Domain.com offers cheap domain registration, domain name transfer and domain search services