mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-117431: Argument Clinic: copy forced text signature when cloning (#117591)
This commit is contained in:
parent
73906d5c90
commit
0d42ac9474
4 changed files with 70 additions and 10 deletions
10
Objects/clinic/unicodeobject.c.h
generated
10
Objects/clinic/unicodeobject.c.h
generated
|
|
@ -357,7 +357,7 @@ exit:
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(unicode_find__doc__,
|
||||
"find($self, sub, start=None, end=None, /)\n"
|
||||
"find($self, sub[, start[, end]], /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].\n"
|
||||
|
|
@ -413,7 +413,7 @@ exit:
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(unicode_index__doc__,
|
||||
"index($self, sub, start=None, end=None, /)\n"
|
||||
"index($self, sub[, start[, end]], /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end].\n"
|
||||
|
|
@ -1060,7 +1060,7 @@ exit:
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(unicode_rfind__doc__,
|
||||
"rfind($self, sub, start=None, end=None, /)\n"
|
||||
"rfind($self, sub[, start[, end]], /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].\n"
|
||||
|
|
@ -1116,7 +1116,7 @@ exit:
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(unicode_rindex__doc__,
|
||||
"rindex($self, sub, start=None, end=None, /)\n"
|
||||
"rindex($self, sub[, start[, end]], /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"Return the highest index in S where substring sub is found, such that sub is contained within S[start:end].\n"
|
||||
|
|
@ -1888,4 +1888,4 @@ skip_optional_pos:
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=3aa49013ffa3fa93 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=9fee62bd337f809b input=a9049054013a1b77]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue