split weirds
Oleg Broytmann
phd at phd.pp.ru
Thu Dec 14 08:06:52 EST 2000
On Thu, 14 Dec 2000, Robin Becker wrote:
> Can somebody explain why strip behaves differently with and without an
"split", not "strip" :)
> argument?
[skip]
> with the default whitespace arg seems as though a run of whitespace is
> being treated as a single character.
It is documented behaviour: "If sep is not specified or None, any
whitespace string is a separator."
Oleg.
----
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list