diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2024-04-12 10:00:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-12 10:00:38 (GMT) |
commit | 2e098abf95fc50f0d9a747140f8e17c5d8b65bce (patch) | |
tree | e28181a7f5c8d632f34d1a37ef7776659ef3f8f5 | |
parent | ffbd97428d714879201438b1167afd59d82281a8 (diff) | |
download | cpython-2e098abf95fc50f0d9a747140f8e17c5d8b65bce.zip cpython-2e098abf95fc50f0d9a747140f8e17c5d8b65bce.tar.gz cpython-2e098abf95fc50f0d9a747140f8e17c5d8b65bce.tar.bz2 |
gh-117764: Add signature for functools.partial() (GH-117775)
-rw-r--r-- | Modules/_functoolsmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index f23b6e0..25c0ecd 100644 --- a/Modules/_functoolsmodule.c +++ b/Modules/_functoolsmodule.c @@ -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[] = { |