Skip to content

Remove private _PyLong_Zero and _PyLong_One variables #86327

@vstinner

Description

@vstinner
BPO 42161
Nosy @rhettinger, @mdickinson, @vstinner, @serhiy-storchaka, @corona10, @pablogsal, @miss-islington
PRs
  • bpo-42161: Add _PyLong_GetZero() and _PyLong_GetOne() #22993
  • bpo-42161: Use _PyLong_GetZero() and _PyLong_GetOne() #22995
  • bpo-42161: Use _PyLong_GetZero() and _PyLong_GetOne() #22998
  • bpo-42161: Remove private _PyLong_Zero and _PyLong_One #23003
  • bpo-42161: Micro-optimize _collections._count_elements() #23008
  • bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant #26391
  • [3.10] bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant (GH-26391) #26393
  • bpo-42161: Hoist the _PyLong_GetOne() call out of the inner loop. #30656
  • 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 2021-05-26.22:54:42.058>
    created_at = <Date 2020-10-26.21:59:37.342>
    labels = ['interpreter-core', '3.10']
    title = 'Remove private _PyLong_Zero and _PyLong_One variables'
    updated_at = <Date 2022-01-18.08:02:43.120>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2022-01-18.08:02:43.120>
    actor = 'rhettinger'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-05-26.22:54:42.058>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2020-10-26.21:59:37.342>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42161
    keywords = ['patch']
    message_count = 16.0
    messages = ['379691', '379700', '379709', '379768', '379798', '379799', '379800', '379804', '379805', '388988', '389002', '389049', '394496', '394498', '394499', '410847']
    nosy_count = 7.0
    nosy_names = ['rhettinger', 'mark.dickinson', 'vstinner', 'serhiy.storchaka', 'corona10', 'pablogsal', 'miss-islington']
    pr_nums = ['22993', '22995', '22998', '23003', '23008', '26391', '26393', '30656']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue42161'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions