Skip to content

Commit 6080e2f

Browse files
committed
Use PEP570 syntax for sum()
1 parent c4c15ed commit 6080e2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ are always available. They are listed here in alphabetical order.
15621562
about strings, see :ref:`textseq`.
15631563

15641564

1565-
.. function:: sum(iterable[, start])
1565+
.. function:: sum(iterable, /[, start])
15661566

15671567
Sums *start* and the items of an *iterable* from left to right and returns the
15681568
total. *start* defaults to ``0``. The *iterable*'s items are normally numbers,

0 commit comments

Comments
 (0)