mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-114626: add PyCFunctionFast and PyCFunctionFastWithKeywords (GH-114627)
Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
32f8ab1ab6
commit
9e3729bbd7
10 changed files with 57 additions and 41 deletions
|
@ -393,7 +393,7 @@ method_vectorcall_FASTCALL(
|
|||
if (method_check_args(func, args, nargs, kwnames)) {
|
||||
return NULL;
|
||||
}
|
||||
_PyCFunctionFast meth = (_PyCFunctionFast)
|
||||
PyCFunctionFast meth = (PyCFunctionFast)
|
||||
method_enter_call(tstate, func);
|
||||
if (meth == NULL) {
|
||||
return NULL;
|
||||
|
@ -412,7 +412,7 @@ method_vectorcall_FASTCALL_KEYWORDS(
|
|||
if (method_check_args(func, args, nargs, NULL)) {
|
||||
return NULL;
|
||||
}
|
||||
_PyCFunctionFastWithKeywords meth = (_PyCFunctionFastWithKeywords)
|
||||
PyCFunctionFastWithKeywords meth = (PyCFunctionFastWithKeywords)
|
||||
method_enter_call(tstate, func);
|
||||
if (meth == NULL) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue