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
commit782afc5927c5d37c3de1a082b6363a79e4bd5962 (patch)
treea578d8fac03802a70588e13ffa07314260efdf58 /Lib/string.py
parent266a436fe2c20f32e4679df32762c2ddda9335f0 (diff)
downloadcpython-git-782afc5927c5d37c3de1a082b6363a79e4bd5962.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)