Modernize and refactor `mimetypes`

Open
#50,875 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Review the attached mimetypes3.diff through mimetypes5.diff and apache_mimetypes.py, then compare them with the current mimetypes library module. The issue is in patch review and does not define a settled target, so confirm scope and acceptance criteria before making changes.

Written by the indexing model from the issue text.

Description

stdlib type-refactor
BPO 6626
Nosy @ncoghlan, @merwok, @bitdancer, @jab
Files
  • mimetypes3.diff: patch "version 3"
  • mimetypes2.diff: patch "version 2"
  • apache_mimetypes.py: a list of tuples containing apache's default extension -> type mappings
  • mimetypes4.diff: patch "version 4"
  • mimetypes5.diff: patch "version 5"
  • 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 2009-08-02.19:19:22.531>
    labels = ['type-bug', 'library']
    title = 'show Python mimetypes module some love'
    updated_at = <Date 2014-01-25.03:41:52.533>
    user = 'https://bugs.python.org/jrus'
    

    bugs.python.org fields:

    activity = <Date 2014-01-25.03:41:52.533>
    actor = 'ncoghlan'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2009-08-02.19:19:22.531>
    creator = 'jrus'
    dependencies = []
    files = ['14630', '14631', '14633', '14696', '14731']
    hgrepos = []
    issue_num = 6626
    keywords = ['patch']
    message_count = 13.0
    messages = ['91196', '91200', '91203', '91204', '91205', '91208', '91489', '91583', '91585', '91884', '93829', '128251', '209140']
    nosy_count = 5.0
    nosy_names = ['ncoghlan', 'eric.araujo', 'r.david.murray', 'jab', 'jrus']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue6626'
    versions = ['Python 3.5']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.