Kaydet (Commit) dfb77dbc authored tarafından Georg Brandl's avatar Georg Brandl

#2809: elaborate str.split docstring a bit.

üst 53905d8f
......@@ -1498,7 +1498,8 @@ PyDoc_STRVAR(split__doc__,
Return a list of the words in the string S, using sep as the\n\
delimiter string. If maxsplit is given, at most maxsplit\n\
splits are done. If sep is not specified or is None, any\n\
whitespace string is a separator.");
whitespace string is a separator and leading and trailing\n\
whitespace is stripped before splitting.");
static PyObject *
string_split(PyStringObject *self, PyObject *args)
......
......@@ -7494,8 +7494,9 @@ PyDoc_STRVAR(split__doc__,
\n\
Return a list of the words in S, using sep as the\n\
delimiter string. If maxsplit is given, at most maxsplit\n\
splits are done. If sep is not specified or is None,\n\
any whitespace string is a separator.");
splits are done. If sep is not specified or is None, any\n\
whitespace string is a separator and leading and trailing\n\
whitespace is stripped before splitting.");
static PyObject*
unicode_split(PyUnicodeObject *self, PyObject *args)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment