8000 PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie) · Issue #61776 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie) #61776
Open
@warsaw

Description

@warsaw
BPO 17576
Nosy @warsaw, @brettcannon, @rhettinger, @mdickinson, @ncoghlan, @vstinner, @alex, @ethanfurman, @ericsnowcurrently, @serhiy-storchaka, @manueljacob
PRs
  • bpo-17576: Strict __int__ and __index__ return types; operator.index always uses __index__ #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']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.9only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0