-
-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document options used to control compression level in tarfile #65603
Comments
The tarfile/zipfile libraries doesn't seem to provide a direct way to specify the compression level. I have now ported my code from subprocess to tarfile/zipfile to achieve platform independency but would be happy if I could also control the compression level. Or is there a special reason not to add this? |
tarfile.open() actually supports a compress_level argument for gzip and bzip2 and a preset argument for lzma compression. |
Could it be that compress_level is not documented? |
That's right. But it is there. |
Then this one is easy: The documentation needs just an update. But then there is still zipfile that doesn't provide (or at least document) a compression level. |
I'm reclassifying this ticket as a doc bug, would you mind opening a separate ticket for zipfile? |
Sure, here is the new ticket: http://bugs.python.org/issue21417 |
Here's a patch. The docs built and I inspected the output. Everything looks correct. |
New changeset 390b7fd617a9 by Benjamin Peterson in branch '2.7': New changeset 0c712828fb6e by Benjamin Peterson in branch '3.4': New changeset 171e8f6c814c by Benjamin Peterson in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: