]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make the hint about the None default less ambiguous.
authorWalter Dörwald <walter@livinglogic.de>
Tue, 14 Sep 2004 09:45:10 +0000 (09:45 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 14 Sep 2004 09:45:10 +0000 (09:45 +0000)
Lib/string.py
Objects/unicodeobject.c

index ce392be4e97dcd24e8d55b0c0e4cbfa1380c9ecb..f8b4490de0737e9939242243ac498047120881b5 100644 (file)
@@ -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 or None, any whitespace string is a separator.
+    is not specified or is None, any whitespace string is a separator.
 
     (split and splitfields are synonymous)
 
index 722b4274bb23a25a5b395dc0d8e7bfe96d371c10..f238f44dad3955dd7565a8bb436484d6e84b9075 100644 (file)
@@ -5987,7 +5987,7 @@ 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 None,
+splits are done. If sep is not specified or is None,
 any whitespace string is a separator.");
 
 static PyObject*