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

Skip to content

Commit 1673007

Browse files
AdamWillpull[bot]
authored andcommitted
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 109e48c commit 1673007

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)