@@ -13078,16 +13078,24 @@ unicode_startswith_impl(PyObject *self, PyObject *subobj, Py_ssize_t start,
13078
13078
13079
13079
13080
13080
/*[clinic input]
13081
- @text_signature "($self, prefix[, start[, end]], /)"
13082
- str.endswith as unicode_endswith = str.startswith
13081
+ @text_signature "($self, suffix[, start[, end]], /)"
13082
+ str.endswith as unicode_endswith
13083
+
13084
+ suffix as subobj: object
13085
+ A string or a tuple of strings to try.
13086
+ start: slice_index(accept={int, NoneType}, c_default='0') = None
13087
+ Optional start position. Default: start of the string.
13088
+ end: slice_index(accept={int, NoneType}, c_default='PY_SSIZE_T_MAX') = None
13089
+ Optional stop position. Default: end of the string.
13090
+ /
13083
13091
13084
- Return True if the string ends with the specified prefix , False otherwise.
13092
+ Return True if the string ends with the specified suffix , False otherwise.
13085
13093
[clinic start generated code]*/
13086
13094
13087
13095
static PyObject *
13088
13096
unicode_endswith_impl (PyObject * self , PyObject * subobj , Py_ssize_t start ,
13089
13097
Py_ssize_t end )
13090
- /*[clinic end generated code: output=cce6f8ceb0102ca9 input=82cd5ce9e7623646 ]*/
13098
+ /*[clinic end generated code: output=cce6f8ceb0102ca9 input=00fbdc774a7d4d71 ]*/
13091
13099
{
13092
13100
if (PyTuple_Check (subobj )) {
13093
13101
Py_ssize_t i ;
0 commit comments