Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 80 additions & 6 deletions Objects/clinic/descrobject.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 29 additions & 5 deletions Objects/clinic/sentinelobject.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 99 additions & 11 deletions Objects/clinic/typevarobject.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Objects/descrobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1816,6 +1816,7 @@ property_copy(PyObject *old, PyObject *get, PyObject *set, PyObject *del)
}

/*[clinic input]
@vectorcall
property.__init__ as property_init

fget: object(c_default="NULL") = None
Expand Down Expand Up @@ -1855,7 +1856,7 @@ class C(object):
static int
property_init_impl(propertyobject *self, PyObject *fget, PyObject *fset,
PyObject *fdel, PyObject *doc)
/*[clinic end generated code: output=01a960742b692b57 input=dfb5dbbffc6932d5]*/
/*[clinic end generated code: output=01a960742b692b57 input=ea89304c10df241b]*/
{
if (fget == Py_None)
fget = NULL;
Expand Down Expand Up @@ -2101,4 +2102,5 @@ PyTypeObject PyProperty_Type = {
PyType_GenericAlloc, /* tp_alloc */
PyType_GenericNew, /* tp_new */
PyObject_GC_Del, /* tp_free */
.tp_vectorcall = property_vectorcall,
};
4 changes: 3 additions & 1 deletion Objects/sentinelobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ sentinel_new_with_module(PyTypeObject *type, PyObject *name, PyObject *module, P
}

/*[clinic input]
@vectorcall
@classmethod
sentinel.__new__ as sentinel_new

Expand All @@ -74,7 +75,7 @@ sentinel.__new__ as sentinel_new

static PyObject *
sentinel_new_impl(PyTypeObject *type, PyObject *name, PyObject *repr)
/*[clinic end generated code: output=1eb7fab52e57d8c8 input=28cab6c468997b35]*/
/*[clinic end generated code: output=1eb7fab52e57d8c8 input=af2ba470062edc82]*/
{
if (repr == Py_None) {
repr = NULL;
Expand Down Expand Up @@ -218,5 +219,6 @@ PyTypeObject PySentinel_Type = {
.tp_methods = sentinel_methods,
.tp_members = sentinel_members,
.tp_new = sentinel_new,
.tp_vectorcall = sentinel_vectorcall,
.tp_free = PyObject_GC_Del,
};
Loading