summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2024-04-10 08:12:05 (GMT)
committerGitHub <noreply@github.com>2024-04-10 08:12:05 (GMT)
commit0d42ac9474f857633d00b414c0715f4efa73f1ca (patch)
tree96a3f6f4b4e7ed544d07b547ddf51b8cc5853acd /Objects
parent73906d5c908c1e0b73c5436faeff7d93698fc074 (diff)
downloadcpython-0d42ac9474f857633d00b414c0715f4efa73f1ca.zip
cpython-0d42ac9474f857633d00b414c0715f4efa73f1ca.tar.gz
cpython-0d42ac9474f857633d00b414c0715f4efa73f1ca.tar.bz2
gh-117431: Argument Clinic: copy forced text signature when cloning (#117591)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/clinic/unicodeobject.c.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Objects/clinic/unicodeobject.c.h b/Objects/clinic/unicodeobject.c.h
index 01c40b9..78e14b0 100644
--- a/Objects/clinic/unicodeobject.c.h
+++ b/Objects/clinic/unicodeobject.c.h
@@ -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]*/