argparse: suggestion for formatting optional positional args

Offen
#55,917 9 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
cli

Rechercherichtung

Start by reviewing the argparse implementation and the referenced regroup.patch and test_regroup.py files. Determine the intended formatting for optional positional arguments from those artifacts, then use the test file to define the expected behavior and verify that the argparse tests pass.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

3.11 stdlib type-feature
BPO 11708
Nosy @pwil3058, @akheron
Files
  • regroup.patch
  • test_regroup.py
  • 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 2011-03-29.04:21:10.095>
    labels = ['type-feature', 'library', '3.11']
    title = 'argparse: suggestion for formatting optional positional args'
    updated_at = <Date 2021-12-10.15:50:50.347>
    user = 'https://github.com/pwil3058'
    

    bugs.python.org fields:

    activity = <Date 2021-12-10.15:50:50.347>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2011-03-29.04:21:10.095>
    creator = 'pwil3058'
    dependencies = []
    files = ['35034', '35035']
    hgrepos = []
    issue_num = 11708
    keywords = ['patch']
    message_count = 6.0
    messages = ['132462', '141050', '149543', '198038', '217153', '217154']
    nosy_count = 4.0
    nosy_names = ['bethard', 'pwil3058', 'petri.lehtinen', 'paul.j3']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue11708'
    versions = ['Python 3.11']
    

    Vorherrschende Sprache
    Python
    Sterne
    77.2k
    Forks
    36k
    Ø Merge
    1 T. 9 Std.
    Gemergte PRs (30 T.)
    558

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
    3. Forken Sie das Repository und arbeiten Sie in einem Branch.
    4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

    Mehr aus python/cpython

    Alle Issues in python/cpython

    Ähnliche Issues

    Weitere Issues zu Python

    Neue Issues direkt in Ihr Postfach

    Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.