PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)

Open
#61,776 55 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

3.10 3.15 3.9 (EOL) interpreter-core topic-C-API type-bug
BPO 17576
Nosy @warsaw, @brettcannon, @rhettinger, @mdickinson, @ncoghlan, @vstinner, @alex, @ethanfurman, @ericsnowcurrently, @serhiy-storchaka, @manueljacob
PRs
  • python/cpython#13740
  • Files
  • issue17576.patch
  • issue17576_v2.patch
  • issue17576_v3.patch
  • issue17576_v4.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 = 'https://github.com/ethanfurman'
    closed_at = None
    created_at = <Date 2013-03-29.22:25:11.167>
    labels = ['interpreter-core', 'type-bug', '3.9', '3.10']
    title = 'PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)'
    updated_at = <Date 2021-08-31.15:42:26.900>
    user = 'https://github.com/warsaw'
    

    bugs.python.org fields:

    activity = <Date 2021-08-31.15:42:26.900>
    actor = 'vstinner'
    assignee = 'ethan.furman'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2013-03-29.22:25:11.167>
    creator = 'barry'
    dependencies = []
    files = ['31147', '31149', '33077', '33093']
    hgrepos = []
    issue_num = 17576
    keywords = ['patch']
    message_count = 54.0
    messages = ['185522', '185523', '185530', '185531', '185532', '188791', '188810', '194335', '194337', '194347', '195713', '195747', '195759', '195764', '195772', '195824', '200171', '200229', '205733', '205735', '205793', '205802', '205856', '205862', '205870', '205889', '205890', '205896', '205916', '205919', '205921', '206199', '207293', '236493', '236502', '236526', '236528', '236880', '336045', '344266', '344275', '344308', '344384', '344386', '344406', '344681', '349562', '370171', '370177', '370190', '381639', '400674', '400707', '400747']
    nosy_count = 14.0
    nosy_names = ['barry', 'brett.cannon', 'rhettinger', 'mark.dickinson', 'ncoghlan', 'vstinner', 'Arfrever', 'alex', 'docs@python', 'ethan.furman', 'python-dev', 'eric.snow', 'serhiy.storchaka', 'mjacob']
    pr_nums = ['13740']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17576'
    versions = ['Python 3.9', 'Python 3.10']
    

    Dominant language
    Python
    Stars
    77.2k
    Forks
    36k
    Avg merge
    1d 9h
    Merged PRs (30d)
    558

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    More from python/cpython

    All issues in python/cpython

    Similar issues

    More Python issues

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.