* Document string split algorithm when sep is None and maxsplit is 0
* Update Doc/library/stdtypes.rst
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
---------
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
>>> ' 1 2 3 '.split()
['1', '2', '3']
+ If *sep* is not specified or is ``None`` and *maxsplit* is ``0``, only
+ leading runs of consecutive whitespace are considered.
+
+ For example::
+
+ >>> "".split(None, 0)
+ []
+ >>> " ".split(None, 0)
+ []
+ >>> " foo ".split(maxsplit=0)
+ ['foo ']
+
.. index::
single: universal newlines; str.splitlines method