Text of bugs.python.org › issue47216 as Styx crawled it on Nov 18, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Issue 47216: adding mtime option to gzip open() - Python tracker

Python Home About News Documentation Downloads Community Foundation Developer's Guide Issue Tracker Issues Search Random Issue Summaries Issues with patch Easy issues Stats User Administration User List Committer List Help Tracker Documentation Tracker Development Report Tracker Problem Issue47216 ➜ 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 2022-04-04 17:47 by ellaellela , last changed 2022-04-11 14:59 by admin . Pull Requests URL Status Linked Edit PR 32310 open ellaellela , 2022-04-04 17:48 Messages (1) msg416685 - (view) Author: Marin M (ellaellela) * Date: 2022-04-04 17:47 init of class GzipFile has mtime as an optional argument, but open() function does not. When using open(), mtime will always be set to the current time and so far there was no way of fixing it to a specific timestamp.

In case two people would tar.gz the same file and take its sha, the shas would be different. With an option to fix the mtime, they could have a unique sha. PR containing code change and the tests is already ready. History Date User Action Args 2022-04-11 14:59:58 admin set github: 91372 2022-04-04 17:48:26 ellaellela set keywords: + patch stage: patch review pull_requests: + pull_request30371 2022-04-04 17:47:01 ellaellela create Supported by The Python Software Foundation , Powered by Roundup Copyright © 1990-2022, Python Software Foundation Legal Statements