Skip to content

Add a version number to Python functions #88373

Description

@markshannon
BPO 44207
Nosy @markshannon, @corona10, @brandtbucher, @isidentical, @erlend-aasland, @Fidget-Spinner
PRs
  • bpo-44207: Add an internal version number to function objects. #27078
  • 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/markshannon'
    closed_at = <Date 2021-08-09.14:58:07.985>
    created_at = <Date 2021-05-21.15:52:58.086>
    labels = ['performance']
    title = 'Add a version number to Python functions'
    updated_at = <Date 2021-08-09.14:58:07.985>
    user = 'https://github.com/markshannon'

    bugs.python.org fields:

    activity = <Date 2021-08-09.14:58:07.985>
    actor = 'Mark.Shannon'
    assignee = 'Mark.Shannon'
    closed = True
    closed_date = <Date 2021-08-09.14:58:07.985>
    closer = 'Mark.Shannon'
    components = []
    creation = <Date 2021-05-21.15:52:58.086>
    creator = 'Mark.Shannon'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44207
    keywords = ['patch']
    message_count = 2.0
    messages = ['394124', '397290']
    nosy_count = 6.0
    nosy_names = ['Mark.Shannon', 'corona10', 'brandtbucher', 'BTaskaya', 'erlendaasland', 'kj']
    pr_nums = ['27078']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue44207'
    versions = []

    Activity

    1. markshannon commented on May 21, 2021

      @markshannon
      MemberAuthor

      In order to specialize calls to Python functions, or to inline them, we need to know that the code object has not changed. It is also useful to know that the globals, builtins and various defaults haven't changed either. Rather than attempting to check these individually it is much simpler and faster to check a version number.

    2. self-assigned this
      on May 21, 2021
    3. self-assigned this
      on May 21, 2021
    4. markshannon commented on Jul 12, 2021

      @markshannon
      MemberAuthor

      New changeset 9487a17 by Mark Shannon in branch 'main':
      bpo-44207: Add an internal version number to function objects. (GH-27078)
      9487a17

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    performancePerformance or resource usage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions