mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-117764: Add signature for functools.partial() (GH-117775)
This commit is contained in:
parent
ffbd97428d
commit
2e098abf95
1 changed files with 3 additions and 2 deletions
|
@ -335,8 +335,9 @@ partial_call(partialobject *pto, PyObject *args, PyObject *kwargs)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(partial_doc,
|
||||
"partial(func, *args, **keywords) - new function with partial application\n\
|
||||
of the given arguments and keywords.\n");
|
||||
"partial(func, /, *args, **keywords)\n--\n\n\
|
||||
Create a new function with partial application of the given arguments\n\
|
||||
and keywords.");
|
||||
|
||||
#define OFF(x) offsetof(partialobject, x)
|
||||
static PyMemberDef partial_memberlist[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue