On 2019-06-13 14:21, Victor Stinner wrote:
We may deprecate it and document that VECTORCALL should be
preferred.

Not really. Vectorcall and METH_FASTCALL solve different problems on different levels.

METH_FASTCALL is used specifically in PythonMethodDef, in other words for instances of "method_descriptor" or "builtin_function_or_method". It has no meaning outside of that.

Vectorcall is meant for classes implementing callables. It is used for example to implement the *classes* "function", "method", "method_descriptor" and "builtin_function_or_method".

The expectation is that most manually written C extensions will be happy with the functionality exposed by "method_descriptor" and "builtin_function_or_method" and they can use METH_FASTCALL.

Cython on the other hand already has a custom class for callables and the expectation is that this class will implement vectorcall.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/X3KXJVCOLGISBFETCBWMOKLI4DLM4PD3/

Reply via email to