GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow extensions to set the vectorcall field on instances of PyFunctionObject · Issue #91049 · python/cpython

Allow extensions to set the vectorcall field on instances of PyFunctionObject #91049

New issue
Copy link
New issue
Copy link
Closed
Closed
Allow extensions to set the vectorcall field on instances of PyFunctionObject#91049
Copy link
Labels
3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

Description

itamaro
mannequin
opened on Mar 1, 2022
Issue body actions
BPO 46893
Nosy @carljm, @DinoV, @itamaro

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 = None
created_at = <Date 2022-03-01.22:14:02.858>
labels = ['interpreter-core', 'type-feature', '3.11']
title = 'Allow extensions to set the vectorcall field on instances of PyFunctionObject'
updated_at = <Date 2022-03-01.22:14:02.858>
user = 'https://github.com/itamaro'

bugs.python.org fields:

activity = <Date 2022-03-01.22:14:02.858>
actor = 'itamaro'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Interpreter Core']
creation = <Date 2022-03-01.22:14:02.858>
creator = 'itamaro'
dependencies = []
files = []
hgrepos = []
issue_num = 46893
keywords = []
message_count = 1.0
messages = ['414302']
nosy_count = 3.0
nosy_names = ['carljm', 'dino.viehland', 'itamaro']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue46893'
versions = ['Python 3.11']

Activity

  1. itamaro commented on Mar 1, 2022

    @itamaro
    itamaromannequin
    on Mar 1, 2022
    MannequinAuthor
    More actions

    CPython extensions providing optimized execution of Python bytecode (like Cinder JIT and Pyjion)
    can benefit from being able to modify the vectorcall field on instances of PyFunctionObject to allow calling the optimized path (e.g. JIT-compiled) directly.

    We propose adding an API to allow extensions to override this field:

    void PyFunction_SetVectorcall(PyFunctionObject *func, vectorcallfunc vectorcall);
    
  2. itamaro
    added
    3.11only security fixesonly security fixes
    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)
    type-featureA feature request or enhancementA feature request or enhancement
    on Mar 1, 2022
  3. ezio-melotti
    transferred this issue fromon Apr 10, 2022
  4. gvanrossum commented on May 25, 2022

    @gvanrossum
    gvanrossum
    on May 25, 2022
    Member
    More actions

    @markshannon @itamaro

    Reacted by Itamar Oren
  5. itamaro commented on May 25, 2022

    @itamaro
    itamaro
    on May 25, 2022
    ContributorAuthor
    More actions

    this is now targeting 3.12 - how can I update the labels?

    GH-92257 adds this API and should be ready for review!

  6. gvanrossum
    added
    3.12only security fixesonly security fixes
    and removed
    3.11only security fixesonly security fixes
    on May 25, 2022
  7. gvanrossum commented on May 25, 2022

    @gvanrossum
    gvanrossum
    on May 25, 2022
    Member
    More actions

    Moved the labels for you, and started the tests running on the PR. Others will have to review it.

    Reacted by Itamar Oren
  8. itamaro
    added 2 commits that reference this issue on Sep 6, 2022

    Merge branch 'main' into pythongh-91049-set-vectorcall

    3387d4a

    Merge branch 'main' into pythongh-91049-set-vectorcall

    b0cc28a
  9. markshannon
    added a commit that references this issue on Sep 15, 2022

    GH-91049: Introduce set vectorcall field API for PyFunctionObject (GH…

    a41ed97
  10. carljm
    closed this as completedon Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.