@@ -162,12 +162,14 @@ insert just after the rightmost x already there.
162
162
163
163
Optional args lo (default 0) and hi (default len(a)) bound the
164
164
slice of a to be searched.
165
+
166
+ A custom key function can be supplied to customize the sort order.
165
167
[clinic start generated code]*/
166
168
167
169
static Py_ssize_t
168
170
_bisect_bisect_right_impl (PyObject * module , PyObject * a , PyObject * x ,
169
171
Py_ssize_t lo , Py_ssize_t hi , PyObject * key )
170
- /*[clinic end generated code: output=3a4bc09cc7c8a73d input=40fcc5afa06ae593 ]*/
172
+ /*[clinic end generated code: output=3a4bc09cc7c8a73d input=43071869772dd53a ]*/
171
173
{
172
174
return internal_bisect_right (a , x , lo , hi , key );
173
175
}
@@ -188,12 +190,14 @@ If x is already in a, insert it to the right of the rightmost x.
188
190
189
191
Optional args lo (default 0) and hi (default len(a)) bound the
190
192
slice of a to be searched.
193
+
194
+ A custom key function can be supplied to customize the sort order.
191
195
[clinic start generated code]*/
192
196
193
197
static PyObject *
194
198
_bisect_insort_right_impl (PyObject * module , PyObject * a , PyObject * x ,
195
199
Py_ssize_t lo , Py_ssize_t hi , PyObject * key )
196
- /*[clinic end generated code: output=ac3bf26d07aedda2 input=44e1708e26b7b802 ]*/
200
+ /*[clinic end generated code: output=ac3bf26d07aedda2 input=f60777d2b6ddb239 ]*/
197
201
{
198
202
PyObject * result , * key_x ;
199
203
Py_ssize_t index ;
@@ -343,12 +347,14 @@ insert just before the leftmost x already there.
343
347
344
348
Optional args lo (default 0) and hi (default len(a)) bound the
345
349
slice of a to be searched.
350
+
351
+ A custom key function can be supplied to customize the sort order.
346
352
[clinic start generated code]*/
347
353
348
354
static Py_ssize_t
349
355
_bisect_bisect_left_impl (PyObject * module , PyObject * a , PyObject * x ,
350
356
Py_ssize_t lo , Py_ssize_t hi , PyObject * key )
351
- /*[clinic end generated code: output=70749d6e5cae9284 input=90dd35b50ceb05e3 ]*/
357
+ /*[clinic end generated code: output=70749d6e5cae9284 input=f29c4fe7f9b797c7 ]*/
352
358
{
353
359
return internal_bisect_left (a , x , lo , hi , key );
354
360
}
@@ -370,12 +376,14 @@ If x is already in a, insert it to the left of the leftmost x.
370
376
371
377
Optional args lo (default 0) and hi (default len(a)) bound the
372
378
slice of a to be searched.
379
+
380
+ A custom key function can be supplied to customize the sort order.
373
381
[clinic start generated code]*/
374
382
375
383
static PyObject *
376
384
_bisect_insort_left_impl (PyObject * module , PyObject * a , PyObject * x ,
377
385
Py_ssize_t lo , Py_ssize_t hi , PyObject * key )
378
- /*[clinic end generated code: output=b1d33e5e7ffff11e input=3ab65d8784f585b1 ]*/
386
+ /*[clinic end generated code: output=b1d33e5e7ffff11e input=0a700a82edbd472c ]*/
379
387
{
380
388
PyObject * result , * key_x ;
381
389
Py_ssize_t index ;
0 commit comments