summaryrefslogtreecommitdiff
path: root/Lib/string.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2004-09-14 09:40:45 +0000
committerWalter Dörwald <walter@livinglogic.de>2004-09-14 09:40:45 +0000
commitc4e6a2cff1c32748e74c1b48d6006cee4147a5a1 (patch)
treee00a495ec90f53423a3bf974b93412bad2d423c2 /Lib/string.py
parentf355cf4cecaa0971a6dbcb975fc801453adf7dfa (diff)
downloadcpython-c4e6a2cff1c32748e74c1b48d6006cee4147a5a1.tar.gz
Enhance the docstrings for unicode.split() and string.split()
to make it clear that it is possible to pass None as the separator argument to get the default "any whitespace" separator.
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/string.py b/Lib/string.py
index e5afa9b22a..ce392be4e9 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -282,7 +282,7 @@ def split(s, sep=None, maxsplit=-1):
Return a list of the words in the string s, using sep as the
delimiter string. If maxsplit is given, splits at no more than
maxsplit places (resulting in at most maxsplit+1 words). If sep
- is not specified, any whitespace string is a separator.
+ is not specified or None, any whitespace string is a separator.
(split and splitfields are synonymous)