Skip to content

Commit 505c2b4

Browse files
eendebakptclaude
andcommitted
Restore the original wording of the map() docstring
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
1 parent 38f90d6 commit 505c2b4

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎Python/bltinmodule.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,7 @@ typedef struct {
14281428

14291429
/*[clinic input]
14301430
class map "mapobject *" "&PyMap_Type"
1431+
@permit_long_summary
14311432
@vectorcall
14321433
@classmethod
14331434
map.__new__ as map_new
@@ -1438,9 +1439,8 @@ map.__new__ as map_new
14381439
*iterables: array
14391440
strict: bool = False
14401441
1441-
Make an iterator that applies function to items of the iterables.
1442+
Make an iterator that computes the function using arguments from each of the iterables.
14421443
1443-
The function is called with one argument from each of the iterables.
14441444
Stops when the shortest iterable is exhausted.
14451445
14461446
If strict is true and one of the arguments is exhausted before the
@@ -1451,7 +1451,7 @@ static PyObject *
14511451
map_new_impl(PyTypeObject *type, PyObject *function, PyObject *iterable,
14521452
PyObject * const *iterables, Py_ssize_t iterables_length,
14531453
int strict)
1454-
/*[clinic end generated code: output=de1354b02d08604b input=d3bf952f6bb775c8]*/
1454+
/*[clinic end generated code: output=de1354b02d08604b input=8a35a5f93c39cbcf]*/
14551455
{
14561456
PyObject *iters = PyTuple_New(iterables_length + 1);
14571457
if (iters == NULL) {

‎Python/clinic/bltinmodule.c.h‎

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)