From fcd20418ac4971ab6519b63bdd5492b1cc6e4b08 Mon Sep 17 00:00:00 2001 From: Saber_0324 Date: Sun, 7 Jun 2026 11:46:36 -0400 Subject: [PATCH] Fix wrong exception message at howto/functional.rst --- 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 552514063c95ab2..ebc7a100d91a646 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)