summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAdam Williamson <adam@blueradius.ca>2024-06-15 05:33:09 (GMT)
committerGitHub <noreply@github.com>2024-06-15 05:33:09 (GMT)
commitd4039d3f6f8cb7738c5cd272dde04171446dfd2b (patch)
treef4a252755431cbd656975f59dcbb41d0d4755229 /Python
parent5c58e728b1391c258b224fc6d88f62f42c725026 (diff)
downloadcpython-d4039d3f6f8cb7738c5cd272dde04171446dfd2b.zip
cpython-d4039d3f6f8cb7738c5cd272dde04171446dfd2b.tar.gz
cpython-d4039d3f6f8cb7738c5cd272dde04171446dfd2b.tar.bz2
gh-120526: Correct signature of map() builtin (GH-120528)
map() requires at least one iterable arg. Signed-off-by: Adam Williamson <awilliam@redhat.com>
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index c4d3ecb..6e50623 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1475,7 +1475,7 @@ static PyMethodDef map_methods[] = {
PyDoc_STRVAR(map_doc,
-"map(function, /, *iterables)\n\
+"map(function, iterable, /, *iterables)\n\
--\n\
\n\
Make an iterator that computes the function using arguments from\n\