zsh-style subpattern matching for fnmatch/glob

Open
#48,823 7 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
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reading the attached zsh-fnmatch.diff and zsh-fnmatch-2.7.diff, then inspect Python's fnmatch and glob library entry points. Clarify the intended zsh-style subpattern behavior and how it should be validated before deciding what remains to be implemented.

Written by the indexing model from the issue text.

Description

stdlib type-feature
BPO 4573
Nosy @birkenfeld, @rhettinger, @terryjreedy, @giampaolo, @tjguk
Files
  • zsh-fnmatch.diff
  • zsh-fnmatch-2.7.diff: Backport of original patch for 2.7
  • 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 2008-12-07.08:17:56.327>
    labels = ['type-feature', 'library', '3.10']
    title = 'zsh-style subpattern matching for fnmatch/glob'
    updated_at = <Date 2020-10-22.22:05:35.386>
    user = 'https://bugs.python.org/erickt'
    

    bugs.python.org fields:

    activity = <Date 2020-10-22.22:05:35.386>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2008-12-07.08:17:56.327>
    creator = 'erickt'
    dependencies = []
    files = ['12259', '12273']
    hgrepos = []
    issue_num = 4573
    keywords = ['patch']
    message_count = 7.0
    messages = ['77216', '77278', '85073', '85130', '85131', '85180', '379369']
    nosy_count = 8.0
    nosy_names = ['georg.brandl', 'rhettinger', 'terry.reedy', 'ironfroggy', 'giampaolo.rodola', 'tim.golden', 'erickt', 'kveretennicov']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue4573'
    versions = ['Python 3.10']
    

    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.