@@ -162,12 +162,14 @@ insert just after the rightmost x already there.
162162
163163Optional args lo (default 0) and hi (default len(a)) bound the
164164slice of a to be searched.
165+
166+ A custom key function can be supplied to customize the sort order.
165167[clinic start generated code]*/
166168
167169static Py_ssize_t
168170_bisect_bisect_right_impl (PyObject * module , PyObject * a , PyObject * x ,
169171 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 ]*/
171173{
172174 return internal_bisect_right (a , x , lo , hi , key );
173175}
@@ -188,12 +190,14 @@ If x is already in a, insert it to the right of the rightmost x.
188190
189191Optional args lo (default 0) and hi (default len(a)) bound the
190192slice of a to be searched.
193+
194+ A custom key function can be supplied to customize the sort order.
191195[clinic start generated code]*/
192196
193197static PyObject *
194198_bisect_insort_right_impl (PyObject * module , PyObject * a , PyObject * x ,
195199 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 ]*/
197201{
198202 PyObject * result , * key_x ;
199203 Py_ssize_t index ;
@@ -343,12 +347,14 @@ insert just before the leftmost x already there.
343347
344348Optional args lo (default 0) and hi (default len(a)) bound the
345349slice of a to be searched.
350+
351+ A custom key function can be supplied to customize the sort order.
346352[clinic start generated code]*/
347353
348354static Py_ssize_t
349355_bisect_bisect_left_impl (PyObject * module , PyObject * a , PyObject * x ,
350356 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 ]*/
352358{
353359 return internal_bisect_left (a , x , lo , hi , key );
354360}
@@ -370,12 +376,14 @@ If x is already in a, insert it to the left of the leftmost x.
370376
371377Optional args lo (default 0) and hi (default len(a)) bound the
372378slice of a to be searched.
379+
380+ A custom key function can be supplied to customize the sort order.
373381[clinic start generated code]*/
374382
375383static PyObject *
376384_bisect_insort_left_impl (PyObject * module , PyObject * a , PyObject * x ,
377385 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 ]*/
379387{
380388 PyObject * result , * key_x ;
381389 Py_ssize_t index ;
0 commit comments