Skip to content

Commit 82bf578

Browse files
committed
Avoid messing around fake default argument.
1 parent 71c909f commit 82bf578

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
@@ -1001,7 +1001,8 @@ are always available. They are listed here in alphabetical order.
10011001

10021002

10031003
.. _func-list:
1004-
.. class:: list(iterable=[])
1004+
.. class:: list()
1005+
list(iterable)
10051006
:noindex:
10061007

10071008
Rather than being a function, :class:`list` is actually a mutable
@@ -1577,7 +1578,8 @@ are always available. They are listed here in alphabetical order.
15771578

15781579

15791580
.. _func-set:
1580-
.. class:: set(iterable=())
1581+
.. class:: set()
1582+
set(iterable)
15811583
:noindex:
15821584

15831585
Return a new :class:`set` object, optionally with elements taken from
@@ -1800,7 +1802,8 @@ are always available. They are listed here in alphabetical order.
18001802

18011803

18021804
.. _func-tuple:
1803-
.. class:: tuple(iterable=())
1805+
.. class:: tuple()
1806+
tuple(iterable)
18041807
:noindex:
18051808

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

0 commit comments

Comments
 (0)