Skip to content

Commit fcd2041

Browse files
author
Saber_0324
committed
Fix wrong exception message at howto/functional.rst
1 parent 5755d0f commit fcd2041

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/howto/functional.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ first calculation. ::
10421042
>>> functools.reduce(operator.concat, [])
10431043
Traceback (most recent call last):
10441044
...
1045-
TypeError: reduce() of empty sequence with no initial value
1045+
TypeError: reduce() of empty iterable with no initial value
10461046
>>> functools.reduce(operator.mul, [1, 2, 3], 1)
10471047
6
10481048
>>> functools.reduce(operator.mul, [], 1)

0 commit comments

Comments
 (0)