Small inconsistency between string.split and "".split
Inyeol Lee
inyeol.lee at siimage.com
Mon Sep 13 13:59:27 EDT 2004
On Mon, Sep 13, 2004 at 02:41:33PM -0300, Carlos Ribeiro wrote:
...
> ... Alas, the "None"
> trick is not documented -- and without knowing about it, I had no
> other way around.
In 2.3.4 Python Library Reference section 2.3.6.1 String Methods,
"""
split([sep [,maxsplit]])
Return a list of the words in the string, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified or None, any
whitespace string is a separator.
"""
I think "None" trick was documented here since string method was
introduced.
-Inyeol
More information about the Python-list
mailing list