split() and string.whitespace

Chaim Krause chaim at chaim.com
Fri Oct 31 15:12:04 EDT 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