[3.15] Update an error message in the 'Functional Programming HOWTO' (GH-151047)

(cherry picked from commit 81965c1683)

Co-authored-by: saber-bit <bryanventura0324@gmail.com>
This commit is contained in:
Miss Islington (bot) 2026-06-07 19:25:37 +02:00 committed by GitHub
parent d3ca26983d
commit 2185b73dff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)