split() and string.whitespace

Chaim Krause chaim at chaim.com
Fri Oct 31 20:12:04 CET 2008

The documentation I am referencing states...

The sep argument may consist of multiple characters (for example, "'1,
2, 3'.split(', ')" returns "['1', '2', '3']").

So why doesn't the latter two split on *any* whitespace character, and
is instead looking for the sep string as a whole?

More information about the Python-list mailing list