zipfile doesn't compress very good, are there other solutions ?
clp2 at rebertia.com
Thu Jun 11 21:27:19 CEST 2009
On Thu, Jun 11, 2009 at 12:11 PM, Stef Mientki<stef.mientki at gmail.com> wrote:
> Peter Otten wrote:
>> Stef Mientki wrote:
>>> I packed all sources with zipfile,
>>> but the compression doesn't seem to be very good.
>> If you don't specify the compression, the files are not compressed at all.
>> Just in case you didn't know...
> .. and would you be willing to tell me how I could set the compression ( at
> maximum) ?
If you had glanced @ the docs for 30 seconds:
z = zipfile.ZipFile(dest_file, "w", zipfile.ZIP_DEFLATED)
More information about the Python-list