Skip to content

Commit c8b0cf7

Browse files
committed
Avoid messing around fake default argument.
1 parent 2a6b692 commit c8b0cf7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Doc/library/functions.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,8 @@ are always available. They are listed here in alphabetical order.
999999

10001000

10011001
.. _func-list:
1002-
.. class:: list(iterable=[])
1002+
.. class:: list()
1003+
list(iterable)
10031004
:noindex:
10041005

10051006
Rather than being a function, :class:`list` is actually a mutable
@@ -1575,7 +1576,8 @@ are always available. They are listed here in alphabetical order.
15751576

15761577

15771578
.. _func-set:
1578-
.. class:: set(iterable=())
1579+
.. class:: set()
1580+
set(iterable)
15791581
:noindex:
15801582

15811583
Return a new :class:`set` object, optionally with elements taken from
@@ -1792,7 +1794,8 @@ are always available. They are listed here in alphabetical order.
17921794

17931795

17941796
.. _func-tuple:
1795-
.. class:: tuple(iterable=())
1797+
.. class:: tuple()
1798+
tuple(iterable)
17961799
:noindex:
17971800

17981801
Rather than being a function, :class:`tuple` is actually an immutable

0 commit comments

Comments
 (0)