Skip to content

Commit 0d28c47

Browse files
committed
sentinel AC vectorcall
1 parent 04722b7 commit 0d28c47

2 files changed

Lines changed: 32 additions & 6 deletions

File tree

‎Objects/clinic/sentinelobject.c.h‎

Lines changed: 29 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Objects/sentinelobject.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ sentinel_new_with_module(PyTypeObject *type, PyObject *name, PyObject *module, P
6363
}
6464

6565
/*[clinic input]
66+
@vectorcall
6667
@classmethod
6768
sentinel.__new__ as sentinel_new
6869
@@ -74,7 +75,7 @@ sentinel.__new__ as sentinel_new
7475

7576
static PyObject *
7677
sentinel_new_impl(PyTypeObject *type, PyObject *name, PyObject *repr)
77-
/*[clinic end generated code: output=1eb7fab52e57d8c8 input=28cab6c468997b35]*/
78+
/*[clinic end generated code: output=1eb7fab52e57d8c8 input=af2ba470062edc82]*/
7879
{
7980
if (repr == Py_None) {
8081
repr = NULL;
@@ -218,5 +219,6 @@ PyTypeObject PySentinel_Type = {
218219
.tp_methods = sentinel_methods,
219220
.tp_members = sentinel_members,
220221
.tp_new = sentinel_new,
222+
.tp_vectorcall = sentinel_vectorcall,
221223
.tp_free = PyObject_GC_Del,
222224
};

0 commit comments

Comments
 (0)