Pure Python operator.index doesn't match the C version.

Đang mở
#62,912 23 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
25/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c, python
Lĩnh vực
backend

Hướng nghiên cứu

Start by reviewing operator_index.patch through operator_index_4.patch and the linked PRs gh-148023 and gh-148025, then inspect the current operator.index entry point. Compare the pure-Python and C behavior, including the dependency on bpo-17576; done means both implementations agree for the reported cases.

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

Mô tả

3.13 3.14 3.15 extension-modules type-bug
BPO 18712
Nosy @arigo, @mdickinson, @ericsnowcurrently, @zware, @serhiy-storchaka, @corona10, @iritkatriel
Dependencies
  • bpo-17576: PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)
  • Files
  • operator_index.patch
  • x.py
  • operator_index_2.patch
  • y.py
  • operator_index_3.patch
  • operator_index_4.patch
  • 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 2013-08-12.14:09:38.011>
    labels = ['extension-modules', 'type-bug', '3.11']
    title = "Pure Python operator.index doesn't match the C version."
    updated_at = <Date 2021-10-02.15:33:51.696>
    user = 'https://github.com/mdickinson'
    

    bugs.python.org fields:

    activity = <Date 2021-10-02.15:33:51.696>
    actor = 'corona10'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Extension Modules']
    creation = <Date 2013-08-12.14:09:38.011>
    creator = 'mark.dickinson'
    dependencies = ['17576']
    files = ['31273', '31334', '31335', '31336', '31344', '31353']
    hgrepos = []
    issue_num = 18712
    keywords = ['patch']
    message_count = 21.0
    messages = ['194966', '195000', '195006', '195064', '195451', '195454', '195457', '195458', '195474', '195476', '195489', '195490', '195510', '195513', '195545', '195546', '195547', '195548', '195549', '195665', '401603']
    nosy_count = 7.0
    nosy_names = ['arigo', 'mark.dickinson', 'eric.snow', 'zach.ware', 'serhiy.storchaka', 'corona10', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue18712'
    versions = ['Python 3.11']
    

    Linked PRs
    • gh-148023
    • gh-148025
    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.