Skip to content

Commit 9f0269d

Browse files
[3.13] gh-120526: Correct signature of map() builtin (GH-120528) (GH-120539)
map() requires at least one iterable arg. (cherry picked from commit d4039d3) Signed-off-by: Adam Williamson <awilliam@redhat.com> Co-authored-by: Adam Williamson <adam@blueradius.ca>
1 parent 3c88898 commit 9f0269d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ static PyMethodDef map_methods[] = {
14751475

14761476

14771477
PyDoc_STRVAR(map_doc,
1478-
"map(function, /, *iterables)\n\
1478+
"map(function, iterable, /, *iterables)\n\
14791479
--\n\
14801480
\n\
14811481
Make an iterator that computes the function using arguments from\n\

0 commit comments

Comments
 (0)