@@ -133,9 +133,9 @@ The module defines the following type:
133133 The length in bytes of one array item in the internal representation.
134134
135135
136- .. method :: append(x )
136+ .. method :: append(value, / )
137137
138- Append a new item with value * x * to the end of the array.
138+ Append a new item with the specified value to the end of the array.
139139
140140
141141 .. method :: buffer_info()
@@ -166,20 +166,20 @@ The module defines the following type:
166166 components (the real part, followed by imaginary part) is preserved.
167167
168168
169- .. method :: count(x )
169+ .. method :: count(value, / )
170170
171- Return the number of occurrences of *x * in the array.
171+ Return the number of occurrences of *value * in the array.
172172
173173
174- .. method :: extend(iterable)
174+ .. method :: extend(iterable, / )
175175
176176 Append items from *iterable * to the end of the array. If *iterable * is another
177177 array, it must have *exactly * the same type code; if not, :exc: `TypeError ` will
178178 be raised. If *iterable * is not an array, it must be iterable and its elements
179179 must be the right type to be appended to the array.
180180
181181
182- .. method :: frombytes(buffer)
182+ .. method :: frombytes(buffer, / )
183183
184184 Appends items from the :term: `bytes-like object `, interpreting
185185 its content as an array of machine values (as if it had been read
@@ -189,55 +189,55 @@ The module defines the following type:
189189 :meth: `!fromstring ` is renamed to :meth: `frombytes ` for clarity.
190190
191191
192- .. method :: fromfile(f, n)
192+ .. method :: fromfile(f, n, / )
193193
194194 Read *n * items (as machine values) from the :term: `file object ` *f * and append
195195 them to the end of the array. If less than *n * items are available,
196196 :exc: `EOFError ` is raised, but the items that were available are still
197197 inserted into the array.
198198
199199
200- .. method :: fromlist(list)
200+ .. method :: fromlist(list, / )
201201
202202 Append items from the list. This is equivalent to ``for x in list:
203203 a.append(x) `` except that if there is a type error, the array is unchanged.
204204
205205
206- .. method :: fromunicode(s )
206+ .. method :: fromunicode(ustr, / )
207207
208208 Extends this array with data from the given Unicode string.
209209 The array must have type code ``'u' `` or ``'w' ``; otherwise a :exc: `ValueError ` is raised.
210210 Use ``array.frombytes(unicodestring.encode(enc)) `` to append Unicode data to an
211211 array of some other type.
212212
213213
214- .. method :: index(x [, start[, stop]])
214+ .. method :: index(value [, start[, stop]])
215215
216216 Return the smallest *i * such that *i * is the index of the first occurrence of
217- *x * in the array. The optional arguments *start * and *stop * can be
218- specified to search for *x * within a subsection of the array. Raise
219- :exc: `ValueError ` if *x * is not found.
217+ *value * in the array. The optional arguments *start * and *stop * can be
218+ specified to search for *value * within a subsection of the array. Raise
219+ :exc: `ValueError ` if *value * is not found.
220220
221221 .. versionchanged :: 3.10
222222 Added optional *start * and *stop * parameters.
223223
224224
225- .. method :: insert(i, x )
225+ .. method :: insert(index, value, / )
226226
227- Insert a new item with value * x * in the array before position *i *. Negative
227+ Insert a new item * value * in the array before position *index *. Negative
228228 values are treated as being relative to the end of the array.
229229
230230
231- .. method :: pop([i] )
231+ .. method :: pop(index=-1, / )
232232
233233 Removes the item with the index *i * from the array and returns it. The optional
234234 argument defaults to ``-1 ``, so that by default the last item is removed and
235235 returned.
236236
237237
238- .. method :: remove(x )
238+ .. method :: remove(value, / )
239239
240- Remove the first occurrence of *x * from the array.
240+ Remove the first occurrence of *value * from the array.
241241
242242
243243 .. method :: clear()
@@ -262,7 +262,7 @@ The module defines the following type:
262262 :meth: `!tostring ` is renamed to :meth: `tobytes ` for clarity.
263263
264264
265- .. method :: tofile(f)
265+ .. method :: tofile(f, / )
266266
267267 Write all items (as machine values) to the :term: `file object ` *f *.
268268
0 commit comments