diff options
author | Walter Dörwald <walter@livinglogic.de> | 2004-09-14 09:40:45 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2004-09-14 09:40:45 (GMT) |
commit | 782afc5927c5d37c3de1a082b6363a79e4bd5962 (patch) | |
tree | a578d8fac03802a70588e13ffa07314260efdf58 /Objects | |
parent | 266a436fe2c20f32e4679df32762c2ddda9335f0 (diff) | |
download | cpython-782afc5927c5d37c3de1a082b6363a79e4bd5962.zip cpython-782afc5927c5d37c3de1a082b6363a79e4bd5962.tar.gz cpython-782afc5927c5d37c3de1a082b6363a79e4bd5962.tar.bz2 |
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 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 05fd11c..722b427 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -5987,8 +5987,8 @@ 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, any whitespace string\n\ -is a separator."); +splits are done. If sep is not specified or None, +any whitespace string is a separator."); static PyObject* unicode_split(PyUnicodeObject *self, PyObject *args) |