BPO | [34898](https://bugs.python.org/issue34898) --- | :--- Nosy | @serhiy-storchaka, @guoci, @dhimmel, @sir-sigurd, @tirkarthi PRs | python/cpython#9704 *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: ```python assignee = None closed_at = created_at = labels = ['3.8', 'type-feature', 'library'] title = 'add mtime argument to gzip.compress' updated_at = user = 'https://github.com/guoci' ``` bugs.python.org fields: ```python activity = actor = 'dhimmel' assignee = 'none' closed = True closed_date = closer = 'serhiy.storchaka' components = ['Library (Lib)'] creation = creator = 'guoci' dependencies = [] files = [] hgrepos = [] issue_num = 34898 keywords = ['patch'] message_count = 4.0 messages = ['327088', '329408', '329409', '350307'] nosy_count = 5.0 nosy_names = ['serhiy.storchaka', 'guoci', 'dhimmel', 'sir-sigurd', 'xtreak'] pr_nums = ['9704'] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue34898' versions = ['Python 3.8'] ```
Activity
guoci commentedon Oct 4, 2018
With the
mtimeargument, the output fromgzip.compresscan be reproducible.serhiy-storchaka commentedon Nov 7, 2018
New changeset 0e7497c by Serhiy Storchaka (guoci) in branch 'master':
bpo-34898: Add mtime parameter to gzip.compress(). (GH-9704)
0e7497c
serhiy-storchaka commentedon Nov 7, 2018
Thank you for your contribution!
dhimmel commentedon Aug 23, 2019
Any reason not to also expose mtime in the gzip.open API?