python / python/cpython

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

Đang mở
#88,179 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

3.8 (EOL) 3.9 (EOL) stdlib type-bug
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

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']
    

    Hướng dẫn đóng góp

    Mở hướng dẫn đóng góp

    Bắt đầu từ đâu

    1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
    2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
    3. Fork repository và làm thay đổi trên một nhánh.
    4. Mở pull request có tham chiếu số hiệu của issue.

    Hướng nghiên cứu

    Bắt đầu bằng cách chạy mã tái hiện trong xtempfile.py và new-xtempfile.py, sau đó lần theo hành vi bị ảnh hưởng của TemporaryFile trong thư viện tempfile. Issue không cung cấp bản sửa lỗi được chấp nhận hay tiêu chí hoàn thành nào, và cách giải quyết trong lịch sử là "wont fix", vì vậy hãy xác nhận hành vi hiện tại trước khi đề xuất bất kỳ thay đổi nào.

    Do mô hình lập chỉ mục viết ra từ nội dung của issue.

    Đánh giá

    Công nghệ
    python
    Lĩnh vực
    operating-systems
    Loại issue
    Lỗi
    Độ khó
    4/5
    Thời gian dự kiến
    3-5 ngày
    Mức độ hoạt động
    Đình trệ
    Độ rõ ràng
    Cần làm rõ
    Mức phù hợp với người mới
    25/100

    Nhận issue mới trong hộp thư của bạn

    Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.