TypeError message incorrect for max() with one keyword arg

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

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

Đánh giá

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

Hướng nghiên cứu

Start by reading issue16515.diff and issue16515-unpacktuple.diff, then trace the max() argument-handling path and PyArg_UnpackTuple entry point in CPython. Compare the current TypeError wording with the issue's stated problem and validate the correction against related interpreter behavior. Done means the one-keyword-argument max() case reports the correct message without regressing missing-argument messages.

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

Mô tả

interpreter-core type-bug
BPO 16515
Nosy @mdickinson, @ezio-melotti, @cjerdonek
Dependencies
  • bpo-16543: improve TypeError messages for missing arguments (meta issue)
  • Files
  • issue16515.diff: Patch against 3.2.
  • issue16515-unpacktuple.diff: Patch against 3.2 to fix the message in PyArg_UnpackTuple.
  • 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 2012-11-20.22:36:57.084>
    labels = ['interpreter-core', 'type-bug', '3.8', '3.9', '3.10']
    title = 'TypeError message incorrect for max() with one keyword arg'
    updated_at = <Date 2020-10-22.18:35:07.206>
    user = 'https://github.com/cjerdonek'
    

    bugs.python.org fields:

    activity = <Date 2020-10-22.18:35:07.206>
    actor = 'iritkatriel'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2012-11-20.22:36:57.084>
    creator = 'chris.jerdonek'
    dependencies = ['16543']
    files = ['28064', '28065']
    hgrepos = []
    issue_num = 16515
    keywords = ['patch']
    message_count = 7.0
    messages = ['176034', '176044', '176063', '176067', '176068', '176070', '176204']
    nosy_count = 3.0
    nosy_names = ['mark.dickinson', 'ezio.melotti', 'chris.jerdonek']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue16515'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    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

    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.

    Issue khác của python/cpython

    Tất cả issue của python/cpython

    Issue tương tự

    Thêm issue về Python

    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.