summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-04-12 10:00:38 (GMT)
committerGitHub <noreply@github.com>2024-04-12 10:00:38 (GMT)
commit2e098abf95fc50f0d9a747140f8e17c5d8b65bce (patch)
treee28181a7f5c8d632f34d1a37ef7776659ef3f8f5
parentffbd97428d714879201438b1167afd59d82281a8 (diff)
downloadcpython-2e098abf95fc50f0d9a747140f8e17c5d8b65bce.zip
cpython-2e098abf95fc50f0d9a747140f8e17c5d8b65bce.tar.gz
cpython-2e098abf95fc50f0d9a747140f8e17c5d8b65bce.tar.bz2
gh-117764: Add signature for functools.partial() (GH-117775)
-rw-r--r--Modules/_functoolsmodule.c5
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[] = {