Message 55809 - Python tracker (original) (raw)

But wasn't your complaint that the implementation didn't match the documentation?

As I said, the implementation treats "runs of whitespace" as separators, except for whitespace at the beginning or end (or in other words, it never returns empty strings). That matches the documentation, except for the "first" in "first, whitespace characters are stripped from both ends". As far as I can tell, the documentation has never matched the implementation here.