gh-117764: Add signature for functools.partial() (GH-117775)
This commit is contained in:
parent
ffbd97428d
commit
2e098abf95
@ -335,8 +335,9 @@ partial_call(partialobject *pto, PyObject *args, PyObject *kwargs)
|
|||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(partial_doc,
|
PyDoc_STRVAR(partial_doc,
|
||||||
"partial(func, *args, **keywords) - new function with partial application\n\
|
"partial(func, /, *args, **keywords)\n--\n\n\
|
||||||
of the given arguments and keywords.\n");
|
Create a new function with partial application of the given arguments\n\
|
||||||
|
and keywords.");
|
||||||
|
|
||||||
#define OFF(x) offsetof(partialobject, x)
|
#define OFF(x) offsetof(partialobject, x)
|
||||||
static PyMemberDef partial_memberlist[] = {
|
static PyMemberDef partial_memberlist[] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user