split(None)
Erik Max Francis
max at alcyone.com
Tue Nov 6 13:34:20 EST 2001
Oliver Fromme wrote:
> So I thought that foo.split() and foo.split(None) should
> return the same result. However:
>
> >>> "foo bar baz".split()
> ['foo', 'bar', 'baz']
>
> >>> "foo bar baz".split(None)
> ['foo bar baz']
These behave identically in Python 2.1.1.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Laws are silent in time of war.
\__/ Cicero
Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
An Esperanto reference for English speakers.
More information about the Python-list
mailing list