Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f474264 commit bd3add0Copy full SHA for bd3add0
Doc/library/stdtypes.rst
@@ -2133,6 +2133,18 @@ expression support in the :mod:`re` module).
2133
>>> ' 1 2 3 '.split()
2134
['1', '2', '3']
2135
2136
+ If *sep* is not specified or is ``None`` and *maxsplit* is ``0``, only
2137
+ leading runs of consecutive whitespace are considered.
2138
+
2139
+ For example::
2140
2141
+ >>> "".split(None, 0)
2142
+ []
2143
+ >>> " ".split(None, 0)
2144
2145
+ >>> " foo ".split(maxsplit=0)
2146
+ ['foo ']
2147
2148
2149
.. index::
2150
single: universal newlines; str.splitlines method
0 commit comments