mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
[3.12] gh-108915: Removes extra backslashes in str.split docstring (GH-109044). (#109061)
* [3.12] gh-108915: Removes extra backslashes in str.split docstring (GH-109044).
(cherry picked from commit e7d5433f94
)
Co-authored-by: Daniel Weiss <134341009+justdan6@users.noreply.github.com>
* re-clinic
---------
Co-authored-by: Daniel Weiss <134341009+justdan6@users.noreply.github.com>
This commit is contained in:
parent
de0202e937
commit
2979cee1af
2 changed files with 5 additions and 5 deletions
|
@ -12361,7 +12361,7 @@ str.split as unicode_split
|
|||
The separator used to split the string.
|
||||
|
||||
When set to None (the default value), will split on any whitespace
|
||||
character (including \\n \\r \\t \\f and spaces) and will discard
|
||||
character (including \n \r \t \f and spaces) and will discard
|
||||
empty strings from the result.
|
||||
maxsplit: Py_ssize_t = -1
|
||||
Maximum number of splits (starting from the left).
|
||||
|
@ -12377,7 +12377,7 @@ the regular expression module.
|
|||
|
||||
static PyObject *
|
||||
unicode_split_impl(PyObject *self, PyObject *sep, Py_ssize_t maxsplit)
|
||||
/*[clinic end generated code: output=3a65b1db356948dc input=906d953b44efc43b]*/
|
||||
/*[clinic end generated code: output=3a65b1db356948dc input=07b9040d98c5fe8d]*/
|
||||
{
|
||||
if (sep == Py_None)
|
||||
return split(self, NULL, maxsplit);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue