Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

Offen
#70,576 11 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
30/100
Issue-Typ
Feature
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
tooling

Rechercherichtung

Start with runpy.run_module(..., alter_sys=True) and review the linked patch.diff and patch-2.diff. Resolve the intended behavior from the issue discussion; done means changing sys.argv[0] is disabled for this mode, with the relevant behavior covered by tests.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

stdlib type-feature
BPO 26388
Nosy @ncoghlan, @ericsnowcurrently, @wkschwartz
Files
  • patch.diff: Suggested change to runpy
  • patch-2.diff: Larger refactoring
  • 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 2016-02-18.22:37:01.371>
    labels = ['type-feature', 'library']
    title = 'Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)'
    updated_at = <Date 2020-11-10.16:26:03.057>
    user = 'https://bugs.python.org/mikekap'
    

    bugs.python.org fields:

    activity = <Date 2020-11-10.16:26:03.057>
    actor = 'William.Schwartz'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2016-02-18.22:37:01.371>
    creator = 'mikekap'
    dependencies = []
    files = ['41981', '45201']
    hgrepos = []
    issue_num = 26388
    keywords = ['patch']
    message_count = 11.0
    messages = ['260483', '260492', '260661', '260662', '260701', '260761', '262975', '262977', '279288', '279345', '279709']
    nosy_count = 5.0
    nosy_names = ['ncoghlan', 'eric.snow', 'piotr.dobrogost', 'William.Schwartz', 'mikekap']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue26388'
    versions = ['Python 3.6']
    

    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.