mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Stop using METH_OLDARGS implicitly
This commit is contained in:
parent
e2e447b6fb
commit
a84dcd7546
4 changed files with 13 additions and 13 deletions
|
|
@ -4259,7 +4259,7 @@ tp_new_wrapper(PyObject *self, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
|
||||
static struct PyMethodDef tp_new_methoddef[] = {
|
||||
{"__new__", (PyCFunction)tp_new_wrapper, METH_KEYWORDS,
|
||||
{"__new__", (PyCFunction)tp_new_wrapper, METH_VARARGS|METH_KEYWORDS,
|
||||
PyDoc_STR("T.__new__(S, ...) -> "
|
||||
"a new object with type S, a subtype of T")},
|
||||
{0}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue