Skip to content

Commit 04722b7

Browse files
committed
property AC vectorcall
1 parent caf8a54 commit 04722b7

2 files changed

Lines changed: 83 additions & 7 deletions

File tree

‎Objects/clinic/descrobject.c.h‎

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

‎Objects/descrobject.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,6 +1816,7 @@ property_copy(PyObject *old, PyObject *get, PyObject *set, PyObject *del)
18161816
}
18171817

18181818
/*[clinic input]
1819+
@vectorcall
18191820
property.__init__ as property_init
18201821
18211822
fget: object(c_default="NULL") = None
@@ -1855,7 +1856,7 @@ class C(object):
18551856
static int
18561857
property_init_impl(propertyobject *self, PyObject *fget, PyObject *fset,
18571858
PyObject *fdel, PyObject *doc)
1858-
/*[clinic end generated code: output=01a960742b692b57 input=dfb5dbbffc6932d5]*/
1859+
/*[clinic end generated code: output=01a960742b692b57 input=ea89304c10df241b]*/
18591860
{
18601861
if (fget == Py_None)
18611862
fget = NULL;
@@ -2101,4 +2102,5 @@ PyTypeObject PyProperty_Type = {
21012102
PyType_GenericAlloc, /* tp_alloc */
21022103
PyType_GenericNew, /* tp_new */
21032104
PyObject_GC_Del, /* tp_free */
2105+
.tp_vectorcall = property_vectorcall,
21042106
};

0 commit comments

Comments
 (0)