From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 7 Jun 2026 17:25:37 +0000 (+0200) Subject: [3.15] Update an error message in the 'Functional Programming HOWTO' (GH-151047) X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=2185b73dff8fa317dfa620cfaa52c007a3f6ea5a;p=thirdparty%2FPython%2Fcpython.git [3.15] Update an error message in the 'Functional Programming HOWTO' (GH-151047) (cherry picked from commit 81965c1683d7129a70e3fde22ea8a02b9398e227) Co-authored-by: saber-bit --- diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 552514063c95..ebc7a100d91a 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)