This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年05月02日 18:00 by deleted250130, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 5385 | merged | bbayles, 2018年01月28日 14:48 | |
| Messages (10) | |||
|---|---|---|---|
| msg217770 - (view) | Author: (deleted250130) | Date: 2014年05月02日 18:00 | |
This is a fork from this ticket: http://bugs.python.org/issue21404 tarfile has a compression level and seems to get now the missing documentation for it. But there is still a compression level missing for zipfile. |
|||
| msg245753 - (view) | Author: Jens Diemer (jens) | Date: 2015年06月24日 15:10 | |
btw. hacked work-a-round is: zlib.Z_DEFAULT_COMPRESSION = 9 |
|||
| msg272610 - (view) | Author: Justin Foo (jfoo) * | Date: 2016年08月13日 20:07 | |
Would compresslevel be a suitable argument? All the backend compressors accept values from 1 to 9 if I'm not mistaken. |
|||
| msg272611 - (view) | Author: Decorater (Decorater) * | Date: 2016年08月13日 20:15 | |
Yes, it would make sence or better yet have a arg that is optional that if not set make it = ``9``. |
|||
| msg272646 - (view) | Author: Justin Foo (jfoo) * | Date: 2016年08月14日 05:28 | |
I thought about that, but: 1. compresslevel=None might make look like no compression was being done at all 2. The current default is not 9 for all backends |
|||
| msg311237 - (view) | Author: Gregory P. Smith (gregory.p.smith) * (Python committer) | Date: 2018年01月30日 05:54 | |
New changeset ce237c7d58ba207575cdfb0195a58a6407fbf717 by Gregory P. Smith (Bo Bayles) in branch 'master': bpo-21417: Add compresslevel= to the zipfile module (GH-5385) https://github.com/python/cpython/commit/ce237c7d58ba207575cdfb0195a58a6407fbf717 |
|||
| msg312883 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2018年02月26日 08:21 | |
I have a concern about the _compresslevel attribute of ZipInfo. Why is it underscored and not documented? |
|||
| msg312921 - (view) | Author: bbayles (bbayles) * | Date: 2018年02月26日 12:06 | |
I made a comment about that in the pull request that went unchallenged ([1]), but I'm happy to change it. [1] https://github.com/python/cpython/pull/5385#pullrequestreview-92055354 |
|||
| msg312961 - (view) | Author: Gregory P. Smith (gregory.p.smith) * (Python committer) | Date: 2018年02月26日 21:36 | |
keeping the conversation in one place, the code review comment was: "I've prefixed this with an underscore because it's not exposed when reading back. ZipInfo has another "private" attribute, _raw_time" compresslevel is documented on the public APIs where it appears, I do not believe it needs to be a public attribute within ZipInfo given the above as that is an implementation detail. If we ever find a good reason to make it public in the future we can add a property. |
|||
| msg312968 - (view) | Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) | Date: 2018年02月26日 22:50 | |
This makes sense to me. Thank you for explanation. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:03 | admin | set | github: 65616 |
| 2018年02月26日 22:50:36 | serhiy.storchaka | set | messages: + msg312968 |
| 2018年02月26日 21:36:06 | gregory.p.smith | set | messages: + msg312961 |
| 2018年02月26日 12:06:37 | bbayles | set | messages: + msg312921 |
| 2018年02月26日 08:21:15 | serhiy.storchaka | set | nosy:
+ serhiy.storchaka messages: + msg312883 |
| 2018年01月30日 06:52:14 | gregory.p.smith | set | status: open -> closed stage: patch review -> commit review resolution: fixed versions: + Python 3.7, - Python 3.5 |
| 2018年01月30日 05:54:10 | gregory.p.smith | set | nosy:
+ gregory.p.smith messages: + msg311237 |
| 2018年01月28日 14:55:49 | bbayles | set | nosy:
+ bbayles |
| 2018年01月28日 14:48:49 | bbayles | set | keywords:
+ patch stage: needs patch -> patch review pull_requests: + pull_request5222 |
| 2016年08月14日 05:28:27 | jfoo | set | messages: + msg272646 |
| 2016年08月13日 20:15:08 | Decorater | set | nosy:
+ Decorater messages: + msg272611 |
| 2016年08月13日 20:07:26 | jfoo | set | nosy:
+ jfoo messages: + msg272610 |
| 2015年06月24日 15:10:54 | jens | set | messages: + msg245753 |
| 2015年06月24日 14:50:02 | jens | set | nosy:
+ jens |
| 2015年01月23日 10:38:41 | fberger | set | nosy:
+ fberger |
| 2014年10月17日 16:54:04 | berker.peksag | set | nosy:
+ berker.peksag |
| 2014年05月02日 18:02:48 | eric.araujo | set | nosy:
+ alanmcintyre stage: needs patch versions: + Python 3.5, - Python 3.4 |
| 2014年05月02日 18:00:24 | deleted250130 | set | type: enhancement |
| 2014年05月02日 18:00:16 | deleted250130 | create | |