@@ -182,10 +182,8 @@ are always available. They are listed here in alphabetical order.
182
182
.. versionadded :: 3.7
183
183
184
184
.. _func-bytearray :
185
- .. class :: bytearray()
186
- bytearray(source)
187
- bytearray(source, encoding)
188
- bytearray(source, encoding, errors)
185
+ .. class :: bytearray(source=b'')
186
+ bytearray(source, encoding, errors='strict')
189
187
:noindex:
190
188
191
189
Return a new array of bytes. The :class: `bytearray ` class is a mutable
@@ -215,10 +213,8 @@ are always available. They are listed here in alphabetical order.
215
213
216
214
217
215
.. _func-bytes :
218
- .. class :: bytes()
219
- bytes(source)
220
- bytes(source, encoding)
221
- bytes(source, encoding, errors)
216
+ .. class :: bytes(source=b'')
217
+ bytes(source, encoding, errors='strict')
222
218
:noindex:
223
219
224
220
Return a new "bytes" object which is an immutable sequence of integers in
@@ -848,7 +844,7 @@ are always available. They are listed here in alphabetical order.
848
844
849
845
850
846
.. _func-frozenset :
851
- .. class :: frozenset(iterable=set (), /)
847
+ .. class :: frozenset(iterable=(), /)
852
848
:noindex:
853
849
854
850
Return a new :class: `frozenset ` object, optionally with elements taken from
@@ -1146,8 +1142,7 @@ are always available. They are listed here in alphabetical order.
1146
1142
1147
1143
1148
1144
.. _func-list :
1149
- .. class :: list()
1150
- list(iterable, /)
1145
+ .. class :: list(iterable=(), /)
1151
1146
:noindex:
1152
1147
1153
1148
Rather than being a function, :class: `list ` is actually a mutable
@@ -1763,7 +1758,7 @@ are always available. They are listed here in alphabetical order.
1763
1758
return f"Person('{self.name}', {self.age})"
1764
1759
1765
1760
1766
- .. function :: reversed(sequence , /)
1761
+ .. function :: reversed(object , /)
1767
1762
1768
1763
Return a reverse :term: `iterator `. The argument must be an object which has
1769
1764
a :meth: `~object.__reversed__ ` method or supports the sequence protocol (the
@@ -1799,8 +1794,7 @@ are always available. They are listed here in alphabetical order.
1799
1794
1800
1795
1801
1796
.. _func-set :
1802
- .. class :: set()
1803
- set(iterable, /)
1797
+ .. class :: set(iterable=(), /)
1804
1798
:noindex:
1805
1799
1806
1800
Return a new :class: `set ` object, optionally with elements taken from
@@ -1940,10 +1934,8 @@ are always available. They are listed here in alphabetical order.
1940
1934
single: string; str() (built-in function)
1941
1935
1942
1936
.. _func-str :
1943
- .. class :: str()
1944
- str(object)
1945
- str(object, encoding)
1946
- str(object, encoding, errors)
1937
+ .. class :: str(object='')
1938
+ str(object, encoding, errors='strict')
1947
1939
str(object, *, errors)
1948
1940
:noindex:
1949
1941
@@ -2059,8 +2051,7 @@ are always available. They are listed here in alphabetical order.
2059
2051
2060
2052
2061
2053
.. _func-tuple :
2062
- .. class :: tuple()
2063
- tuple(iterable, /)
2054
+ .. class :: tuple(iterable=(), /)
2064
2055
:noindex:
2065
2056
2066
2057
Rather than being a function, :class: `tuple ` is actually an immutable
0 commit comments