Update an error message in the 'Functional Programming HOWTO' (#151047)

This commit is contained in:
saber-bit
2026-06-07 17:47:50 +01:00
committed by GitHub
parent 5755d0f083
commit 81965c1683
+1 -1
View 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)