From efd170b5fd89afb9add2ee888470967b2ae06fd1 Mon Sep 17 00:00:00 2001 From: saber-bit Date: Sun, 7 Jun 2026 12:47:50 -0400 Subject: [PATCH] Update an error message in the 'Functional Programming HOWTO' (GH-151047) (cherry picked from commit 81965c1683d7129a70e3fde22ea8a02b9398e227) Co-authored-by: saber-bit --- Doc/howto/functional.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/howto/functional.rst b/Doc/howto/functional.rst index 320dcf7eaca113..b78be3bbfbfed9 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)