@@ -798,6 +798,7 @@ list_ass_item(PyObject *aa, Py_ssize_t i, PyObject *v)
798
798
}
799
799
800
800
/*[clinic input]
801
+ @critical_section
801
802
list.insert
802
803
803
804
index: Py_ssize_t
@@ -809,22 +810,23 @@ Insert object before index.
809
810
810
811
static PyObject *
811
812
list_insert_impl (PyListObject * self , Py_ssize_t index , PyObject * object )
812
- /*[clinic end generated code: output=7f35e32f60c8cb78 input=858514cf894c7eab ]*/
813
+ /*[clinic end generated code: output=7f35e32f60c8cb78 input=b1987ca998a4ae2d ]*/
813
814
{
814
815
if (ins1 (self , index , object ) == 0 )
815
816
Py_RETURN_NONE ;
816
817
return NULL ;
817
818
}
818
819
819
820
/*[clinic input]
821
+ @critical_section
820
822
list.clear as py_list_clear
821
823
822
824
Remove all items from list.
823
825
[clinic start generated code]*/
824
826
825
827
static PyObject *
826
828
py_list_clear_impl (PyListObject * self )
827
- /*[clinic end generated code: output=83726743807e3518 input=378711e10f545c53 ]*/
829
+ /*[clinic end generated code: output=83726743807e3518 input=e285b7f09051a9ba ]*/
828
830
{
829
831
list_clear (self );
830
832
Py_RETURN_NONE ;
@@ -1062,6 +1064,7 @@ list_inplace_concat(PyObject *_self, PyObject *other)
1062
1064
}
1063
1065
1064
1066
/*[clinic input]
1067
+ @critical_section
1065
1068
list.pop
1066
1069
1067
1070
index: Py_ssize_t = -1
@@ -1074,7 +1077,7 @@ Raises IndexError if list is empty or index is out of range.
1074
1077
1075
1078
static PyObject *
1076
1079
list_pop_impl (PyListObject * self , Py_ssize_t index )
1077
- /*[clinic end generated code: output=6bd69dcb3f17eca8 input=b83675976f329e6f ]*/
1080
+ /*[clinic end generated code: output=6bd69dcb3f17eca8 input=c269141068ae4b8f ]*/
1078
1081
{
1079
1082
PyObject * v ;
1080
1083
int status ;
@@ -2593,14 +2596,15 @@ PyList_Sort(PyObject *v)
2593
2596
}
2594
2597
2595
2598
/*[clinic input]
2599
+ @critical_section
2596
2600
list.reverse
2597
2601
2598
2602
Reverse *IN PLACE*.
2599
2603
[clinic start generated code]*/
2600
2604
2601
2605
static PyObject *
2602
2606
list_reverse_impl (PyListObject * self )
2603
- /*[clinic end generated code: output=482544fc451abea9 input=eefd4c3ae1bc9887 ]*/
2607
+ /*[clinic end generated code: output=482544fc451abea9 input=04ac8e0c6a66e4d9 ]*/
2604
2608
{
2605
2609
if (Py_SIZE (self ) > 1 )
2606
2610
reverse_slice (self -> ob_item , self -> ob_item + Py_SIZE (self ));
@@ -2730,6 +2734,7 @@ list_count(PyListObject *self, PyObject *value)
2730
2734
}
2731
2735
2732
2736
/*[clinic input]
2737
+ @critical_section
2733
2738
list.remove
2734
2739
2735
2740
value: object
@@ -2741,8 +2746,8 @@ Raises ValueError if the value is not present.
2741
2746
[clinic start generated code]*/
2742
2747
2743
2748
static PyObject *
2744
- list_remove (PyListObject * self , PyObject * value )
2745
- /*[clinic end generated code: output=f087e1951a5e30d1 input=2dc2ba5bb2fb1f82 ]*/
2749
+ list_remove_impl (PyListObject * self , PyObject * value )
2750
+ /*[clinic end generated code: output=b9b76a6633b18778 input=26c813dbb95aa93b ]*/
2746
2751
{
2747
2752
Py_ssize_t i ;
2748
2753
0 commit comments