Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit110f69a

Browse files
committed
gh-106320: Remove _PyFunction_Vectorcall() API
Move _PyFunction_Vectorcall() API to the internal C API.
1 parent5e5a34a commit110f69a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

‎Include/cpython/funcobject.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,6 @@ PyAPI_FUNC(int) PyFunction_SetClosure(PyObject *, PyObject *);
7979
PyAPI_FUNC(PyObject*)PyFunction_GetAnnotations(PyObject*);
8080
PyAPI_FUNC(int)PyFunction_SetAnnotations(PyObject*,PyObject*);
8181

82-
PyAPI_FUNC(PyObject*)_PyFunction_Vectorcall(
83-
PyObject*func,
84-
PyObject*const*stack,
85-
size_tnargsf,
86-
PyObject*kwnames);
87-
8882
#define_PyFunction_CAST(func) \
8983
(assert(PyFunction_Check(func)), _Py_CAST(PyFunctionObject*, func))
9084

‎Include/internal/pycore_function.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11+
externPyObject*_PyFunction_Vectorcall(
12+
PyObject*func,
13+
PyObject*const*stack,
14+
size_tnargsf,
15+
PyObject*kwnames);
16+
1117
#defineFUNC_MAX_WATCHERS 8
1218

1319
struct_py_func_state {

‎Objects/call.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include"pycore_call.h"// _PyObject_CallNoArgsTstate()
33
#include"pycore_ceval.h"// _Py_EnterRecursiveCallTstate()
44
#include"pycore_dict.h"// _PyDict_FromItems()
5+
#include"pycore_function.h"// _PyFunction_Vectorcall() definition
56
#include"pycore_modsupport.h"// _Py_VaBuildStack()
67
#include"pycore_object.h"// _PyCFunctionWithKeywords_TrampolineCall()
78
#include"pycore_pyerrors.h"// _PyErr_Occurred()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp