python / python/cpython

tempfile.TemporaryFile: name of file descriptor cannot be reused in consecutive initialization

Offen
#88,179 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

3.8 (EOL) 3.9 (EOL) stdlib type-bug
Vorherrschende Sprache
Python
Sterne
77.2k
Forks
36k
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

BPO 44013
Nosy @tjol, @zhongxiang117
Files
  • xtempfile.py: codes reproduce
  • new-xtempfile.py: bug reproduce: new testing and explanations
  • 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-05-02.22:33:35.276>
    labels = ['3.8', 'type-bug', 'library', '3.9']
    title = 'tempfile.TemporaryFile: name of file descriptor cannot be reused in consecutive initialization'
    updated_at = <Date 2021-06-07.22:11:27.108>
    user = 'https://github.com/zhongxiang117'
    

    bugs.python.org fields:

    activity = <Date 2021-06-07.22:11:27.108>
    actor = 'zhongxiang117'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-05-02.22:33:35.276>
    creator = 'zhongxiang117'
    dependencies = []
    files = ['50004', '50093']
    hgrepos = []
    issue_num = 44013
    keywords = []
    message_count = 5.0
    messages = ['392746', '395089', '395154', '395156', '395291']
    nosy_count = 2.0
    nosy_names = ['tjollans', 'zhongxiang117']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44013'
    versions = ['Python 3.8', 'Python 3.9']
    

    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 damit, den Reproduktionscode in xtempfile.py und new-xtempfile.py auszuführen, und verfolge dann das betroffene Verhalten von TemporaryFile in der tempfile-Bibliothek. Das Issue enthält keine akzeptierte Lösung oder ein Abschlusskriterium, und seine historische Lösung lautet "wont fix". Bestätige daher das aktuelle Verhalten, bevor du eine Änderung vorschlägst.

    Vom Indexierungsmodell aus dem Issue-Text verfasst.

    Bewertung

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

    Neue Issues direkt in Ihr Postfach

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