https://github.com/python/cpython/commit/fff18c330470afdb9ad322d2cfb1741954d806aa commit: fff18c330470afdb9ad322d2cfb1741954d806aa branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: StanFromIreland <[email protected]> date: 2026-06-07T18:26:09+01:00 summary:
[3.14] Update an error message in the 'Functional Programming HOWTO' (GH-151047) (cherry picked from commit 81965c1683d7129a70e3fde22ea8a02b9398e227) Co-authored-by: saber-bit <[email protected]> files: M Doc/howto/functional.rst diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 320dcf7eaca1136..b78be3bbfbfed97 100644 --- a/Doc/howto/functional.rst +++ b/Doc/howto/functional.rst @@ -1042,7 +1042,7 @@ first calculation. :: >>> functools.reduce(operator.concat, []) Traceback (most recent call last): ... - TypeError: reduce() of empty sequence with no initial value + TypeError: reduce() of empty iterable with no initial value >>> functools.reduce(operator.mul, [1, 2, 3], 1) 6 >>> functools.reduce(operator.mul, [], 1) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
