python / python/cpython

fileinput.input(path, inplace=True) crashes for valid filename with 252-255 characters

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

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

stdlib type-feature
Ngôn ngữ chính
Python
Star
77.2k
Fork
36k
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
558

Mô tả

BPO 45965
Nosy @jamilraichouni
Files
  • long_filename_passed_to_fileinput.ipynb: Example Jupyter notebook showcasing that fileinput cannot handle a valid file
  • 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-12-02.15:46:58.990>
    labels = ['type-feature', 'library', '3.10']
    title = 'fileinput.input(path, inplace=True) crashes for valid filename with 252-255 characters'
    updated_at = <Date 2021-12-02.15:46:58.990>
    user = 'https://github.com/jamilraichouni'
    

    bugs.python.org fields:

    activity = <Date 2021-12-02.15:46:58.990>
    actor = 'jamil.raichouni'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-12-02.15:46:58.990>
    creator = 'jamil.raichouni'
    dependencies = []
    files = ['50471']
    hgrepos = []
    issue_num = 45965
    keywords = []
    message_count = 1.0
    messages = ['407534']
    nosy_count = 1.0
    nosy_names = ['jamil.raichouni']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue45965'
    versions = ['Python 3.10']
    

    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

    Mở long_filename_passed_to_fileinput.ipynb và tái hiện lỗi thông qua fileinput.input(path, inplace=True) với các tên tệp hợp lệ dài 252–255 ký tự. Truy vết điểm vào của fileinput.input để xác định hành vi gây lỗi; được xem là hoàn thành khi các tên tệp đó không còn gây crash và hành vi đã được kiểm chứng theo ví dụ trong notebook.

    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
    cli
    Loại issue
    Lỗi
    Độ khó
    3/5
    Thời gian dự kiến
    1-2 ngày
    Mức độ hoạt động
    Đình trệ
    Độ rõ ràng
    Khá rõ ràng
    Mức phù hợp với người mới
    38/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.