Skip to content

long_add and long_sub might return a new int where &small_ints[x] could be returned #71332

Description

@orenmn
mannequin
BPO 27145
Nosy @rhettinger, @vstinner, @methane, @1st1, @orenmn
PRs
  • bpo-27145:small_ints[x] could be returned in long_add and long_sub #15716
  • Files
  • proposedPatches.diff: proposed patches diff file
  • CPythonTestOutput.txt: test output of CPython without my patches (tested on my PC)
  • patchedCPythonTestOutput.txt: test output of CPython with my patches (tested on my PC)
  • proposedPatches.diff: proposed patches diff file update 1
  • 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 = <Date 2019-11-26.07:55:28.666>
    created_at = <Date 2016-05-28.15:58:37.336>
    labels = ['interpreter-core', 'type-bug']
    title = 'long_add and long_sub might return a new int where &small_ints[x] could be returned'
    updated_at = <Date 2019-11-26.08:20:48.593>
    user = 'https://github.com/orenmn'

    bugs.python.org fields:

    activity = <Date 2019-11-26.08:20:48.593>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-11-26.07:55:28.666>
    closer = 'methane'
    components = ['Interpreter Core']
    creation = <Date 2016-05-28.15:58:37.336>
    creator = 'Oren Milman'
    dependencies = []
    files = ['43041', '43042', '43043', '43148']
    hgrepos = []
    issue_num = 27145
    keywords = ['patch']
    message_count = 5.0
    messages = ['266557', '267102', '267103', '357486', '357487']
    nosy_count = 5.0
    nosy_names = ['rhettinger', 'vstinner', 'methane', 'yselivanov', 'Oren Milman']
    pr_nums = ['15716']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27145'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions