python / python/cpython

implementations of the deprecated load_module import loader API, as prescribed by the documentation, are not thread safe

Offen
#87,824 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

3.10 3.7 (EOL) 3.8 (EOL) 3.9 (EOL) docs topic-importlib type-bug
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
36k
Ø Merge
1 T. 9 Std.
Gemergte PRs (30 T.)
558

Beschreibung

BPO 43658
Nosy @kale-smoothie
Files
  • thread_unsafe_import.py: set env var PICK_API=N with N in {0,1} to demonstrate thread unsafe import and N=2 for expected behaviour
  • 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 2021-03-29.16:53:01.049>
    labels = ['type-bug', '3.8', '3.9', '3.10', '3.7', 'docs']
    title = 'implementations of the deprecated load_module import loader API, as prescribed by the documentation, are not thread safe'
    updated_at = <Date 2021-03-29.16:53:01.049>
    user = 'https://github.com/kale-smoothie'
    

    bugs.python.org fields:

    activity = <Date 2021-03-29.16:53:01.049>
    actor = 'kale-smoothie'
    assignee = 'docs@python'
    closed = False
    closed_date = None
    closer = None
    components = ['Documentation']
    creation = <Date 2021-03-29.16:53:01.049>
    creator = 'kale-smoothie'
    dependencies = []
    files = ['49916']
    hgrepos = []
    issue_num = 43658
    keywords = []
    message_count = 1.0
    messages = ['389713']
    nosy_count = 2.0
    nosy_names = ['docs@python', 'kale-smoothie']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue43658'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Beitragsleitfaden

    Beitragsleitfaden öffnen

    Erste Schritte

    1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
    2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
    3. Forke das Repository und arbeite in einem Branch.
    4. Öffne einen Pull Request, der die Issue-Nummer nennt.

    Rechercherichtung

    Beginne mit der hochgeladenen thread_unsafe_import.py-Reproduktion und führe sie mit PICK_API=0, 1 und 2 aus, um das dokumentierte load_module-Verhalten zu beobachten. Suche dann die Python-Dokumentation für die veraltete Import-Loader-API und vergleiche deren vorgeschriebene Implementierung mit der Reproduktion. Die Aufgabe ist abgeschlossen, wenn die Dokumentation keine thread-unsichere Implementierung mehr vorschreibt und das erwartete Verhalten korrekt beschreibt.

    Vom Indexierungsmodell aus dem Issue-Text verfasst.

    Bewertung

    Tech-Stack
    python
    Bereich
    documentation
    Issue-Typ
    Dokumentation
    Schwierigkeit
    4/5
    Geschätzter Aufwand
    3-5 Tage
    Aktivitätsstatus
    Veraltet
    Klarheit
    Größtenteils klar
    Anfängerfreundlichkeit
    35/100

    Neue Issues direkt in Ihr Postfach

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