]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update an error message in the 'Functional Programming HOWTO' (#151047)
authorsaber-bit <bryanventura0324@gmail.com>
Sun, 7 Jun 2026 16:47:50 +0000 (12:47 -0400)
committerGitHub <noreply@github.com>
Sun, 7 Jun 2026 16:47:50 +0000 (17:47 +0100)
Doc/howto/functional.rst

index 552514063c95ab287158697eb0c9caa9b5cc6ab6..ebc7a100d91a64636d3590f73b60da84d6a4adb2 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)