]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-120526: Correct signature of map() builtin (GH-120528) (GH-120539)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 15 Jun 2024 05:59:37 +0000 (07:59 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 05:59:37 +0000 (05:59 +0000)
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>
Python/bltinmodule.c

index 351fc8462a5ddc083951afd27b0e5f47cf911d14..8f368578767497ebc6bc95f32afa16e887220495 100644 (file)
@@ -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\