FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

adding mtime option to gzip open() · Issue #91372 · python/cpython · GitHub

Repository navigation

adding mtime option to gzip open() #91372

Closed

Description

mannequin
BPO 47216
Nosy @ellaellela
PRs
  • gh-91372: add mtime to gzip.open #32310
  • 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:

    assignee = None
    closed_at = None
    created_at = <Date 2022-04-04.17:47:01.278>
    labels = ['type-feature', 'library', '3.11']
    title = 'adding mtime option to gzip open()'
    updated_at = <Date 2022-04-04.17:48:26.627>
    user = 'https://github.com/ellaellela'

    bugs.python.org fields:

    activity = <Date 2022-04-04.17:48:26.627>
    actor = 'ellaellela'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2022-04-04.17:47:01.278>
    creator = 'ellaellela'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 47216
    keywords = ['patch']
    message_count = 1.0
    messages = ['416685']
    nosy_count = 1.0
    nosy_names = ['ellaellela']
    pr_nums = ['32310']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue47216'
    versions = ['Python 3.11']

    Activity

    1. ellaellela commented on Apr 4, 2022

      ellaellelamannequin
      MannequinAuthor

      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.

    2. added
      3.11only security fixes
      stdlibStandard Library Python modules in the Lib/ directory
      type-featureA feature request or enhancement
      on Apr 4, 2022
    3. transferred this issue fromon Apr 10, 2022
    4. added a commit that references this issue on May 22, 2026
    5. added 2 commits that reference this issue on May 22, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL