Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4039d3

Browse files
authored
gh-120526: Correct signature of map() builtin (GH-120528)
map() requires at least one iterable arg. Signed-off-by: Adam Williamson <[email protected]>
1 parent 5c58e72 commit d4039d3

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)