summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-06-15 05:59:37 (GMT)
committerGitHub <noreply@github.com>2024-06-15 05:59:37 (GMT)
commit9f0269d6aed1b61996b95dc0730a4008de012011 (patch)
treeee3a30e32f283f2ba4ba902ebf6917ccd2995f9f
parent3c88898a696785fb4872a271d7c90f6505178fd7 (diff)
downloadcpython-9f0269d6aed1b61996b95dc0730a4008de012011.zip
cpython-9f0269d6aed1b61996b95dc0730a4008de012011.tar.gz
cpython-9f0269d6aed1b61996b95dc0730a4008de012011.tar.bz2
[3.13] gh-120526: Correct signature of map() builtin (GH-120528) (GH-120539)
map() requires at least one iterable arg. (cherry picked from commit d4039d3f6f8cb7738c5cd272dde04171446dfd2b) Signed-off-by: Adam Williamson <awilliam@redhat.com> Co-authored-by: Adam Williamson <adam@blueradius.ca>
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 351fc84..8f36857 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\