mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
split() docstring: Made signature and description for the first
parameter match. Error pointed out by François Pinard <pinard@iro.umontreal.ca> on c.l.py.
This commit is contained in:
parent
1b6e463bd5
commit
e4f13660f8
2 changed files with 5 additions and 5 deletions
|
@ -117,12 +117,12 @@ split_whitespace(s, len, maxsplit)
|
|||
|
||||
|
||||
static char splitfields__doc__[] =
|
||||
"split(str [,sep [,maxsplit]]) -> list of strings\n\
|
||||
splitfields(str [,sep [,maxsplit]]) -> list of strings\n\
|
||||
"split(s [,sep [,maxsplit]]) -> list of strings\n\
|
||||
splitfields(s [,sep [,maxsplit]]) -> list of strings\n\
|
||||
\n\
|
||||
Return a list of the words in the string s, using sep as the\n\
|
||||
delimiter string. If maxsplit is nonzero, splits into at most\n\
|
||||
maxsplit words If sep is not specified, any whitespace string\n\
|
||||
maxsplit words. If sep is not specified, any whitespace string\n\
|
||||
is a separator. Maxsplit defaults to 0.\n\
|
||||
\n\
|
||||
(split and splitfields are synonymous)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue