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 — Add vector call functions to the limited API · Issue #98586 · python/cpython

Add vector call functions to the limited API #98586

New issue
Copy link
New issue
Copy link
Closed
#98587
Closed
Add vector call functions to the limited API#98586
#98587
Copy link
Labels
topic-C-APItype-featureA feature request or enhancementA feature request or enhancement

Description

@wjakob
wjakob
opened on Oct 24, 2022
Issue body actions

Feature or enhancement

Starting in Python 3.12, it is possible to receive vector calls in the limited API. However, it is not possible to issue them from a binary extension module compiled for the limited API.

Pitch

Since the PEP-590 is presumably stable at this point, I propose exposing more of it through the limited API. This would entail the functions

  • PyObject_Vectorcall
  • PyObject_VectorcallMethod
  • PyObject_VectorcallDict
  • PY_VECTORCALL_ARGUMENTS_OFFSET (a macro constant that is needed to use these effectively)

Previous discussion

Some related discussion took place here: https://discuss.python.org/t/ideas-for-forward-compatible-and-fast-extension-libraries-in-python-3-12. This PR Is specifically about item #5 from the list in the first post.

  • PR: gh-98586: add whatsnew entry covering limited-API outgoing vector calls, related documentation fix #99056

Activity

  1. wjakob
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Oct 24, 2022
  2. wjakob commented on Oct 24, 2022

    @wjakob
    wjakob
    on Oct 24, 2022
    ContributorAuthor
    More actions

    PR #98587 contains a tentative set of changes realizing the addition of these functions.

  3. AlexWaygood
    added
    topic-C-API
    on Oct 24, 2022
  4. erlend-aasland
    linked a pull request that will close this issuegh-98586: Add vector call APIs to the Limited API #98587on Oct 24, 2022
  5. encukou
    closed this as completedin #98587on Oct 27, 2022
  6. encukou
    added a commit that references this issue on Oct 27, 2022

    gh-98586: Add vector call APIs to the Limited API (GH-98587)

    e60892f
  7. gvanrossum
    added a commit that references this issue on Oct 28, 2022

    pythongh-98586: Add vector call APIs to the Limited API (pythonGH-98587)

    1ec22b5
  8. wjakob
    added a commit that references this issue on Nov 3, 2022

    pythongh-98586: add whatsnew entry, related documentation fix

    11b4bca
  9. erlend-aasland
    added a commit that references this issue on Nov 6, 2022

    gh-98586: Add What's New entry and update docs (#99056)

    57a4052
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

    topic-C-APItype-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.