]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Update an error message in the 'Functional Programming HOWTO' (GH-151047)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 7 Jun 2026 17:26:30 +0000 (19:26 +0200)
committerGitHub <noreply@github.com>
Sun, 7 Jun 2026 17:26:30 +0000 (18:26 +0100)
(cherry picked from commit 81965c1683d7129a70e3fde22ea8a02b9398e227)

Co-authored-by: saber-bit <bryanventura0324@gmail.com>
Doc/howto/functional.rst

index 320dcf7eaca1136cd4c2a328f9a24f2b0fb65cf0..b78be3bbfbfed97dba1d45ea986b1c31bd315d36 100644 (file)
@@ -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)