Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Feature or enhancement
Starting in Python 3.12, it is possible toreceive vector calls in the limited API. However, it is not possible toissue them from a binary extension module compiled for the limited API.
Pitch
Since thePEP-590 is presumably stable at this point, I propose exposing more of it through the limited API. This would entail the functions
PyObject_VectorcallPyObject_VectorcallMethodPyObject_VectorcallDictPY_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.