Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Address Jelle's review: clarify default values in param docstrings
  • Loading branch information
erlend-aasland committed Apr 2, 2024
commit c2ce49e0cbd75ed378913083eac75617af18c3d6
10 changes: 5 additions & 5 deletions Objects/clinic/unicodeobject.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -13028,9 +13028,9 @@ str.startswith as unicode_startswith
prefix as subobj: object
A string or a tuple of strings to try.
start: slice_index(accept={int, NoneType}, c_default='0') = None
Optional start position. Default 0.
Optional start position. Default: start of the string.
end: slice_index(accept={int, NoneType}, c_default='PY_SSIZE_T_MAX') = None
Optional stop position. Default PY_SSIZE_T_MAX.
Optional stop position. Default: end of the string.
/

Return True if the string starts with the specified prefix, False otherwise.
Expand All @@ -13039,7 +13039,7 @@ Return True if the string starts with the specified prefix, False otherwise.
static PyObject *
unicode_startswith_impl(PyObject *self, PyObject *subobj, Py_ssize_t start,
Py_ssize_t end)
/*[clinic end generated code: output=4bd7cfd0803051d4 input=9c6ded2ba2e2f90b]*/
/*[clinic end generated code: output=4bd7cfd0803051d4 input=5f918b5f5f89d856]*/
{
if (PyTuple_Check(subobj)) {
Py_ssize_t i;
Expand Down