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
40 changes: 36 additions & 4 deletions Objects/clinic/descrobject.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 @@ -1300,6 +1300,7 @@ PyDictProxy_New(PyObject *mapping)
}

/*[clinic input]
@vectorcall
@classmethod
mappingproxy.__new__ as mappingproxy_new

Expand All @@ -1310,7 +1311,7 @@ Read-only proxy of a mapping.

static PyObject *
mappingproxy_new_impl(PyTypeObject *type, PyObject *mapping)
/*[clinic end generated code: output=65f27f02d5b68fa7 input=c156df096ef7590c]*/
/*[clinic end generated code: output=65f27f02d5b68fa7 input=7388846480c052d2]*/
{
return PyDictProxy_New(mapping);
}
Expand Down Expand Up @@ -2057,6 +2058,7 @@ PyTypeObject PyDictProxy_Type = {
0, /* tp_init */
0, /* tp_alloc */
mappingproxy_new, /* tp_new */
.tp_vectorcall = mappingproxy_vectorcall,
};

PyTypeObject PyProperty_Type = {
Expand Down
Loading