[Python-Dev] Fwd: Problem withthe API for str.rpartition()
rhettinger at ewtllc.com
Tue Sep 5 22:13:02 CEST 2006
Tim Peters wrote:
> upto, sep, rest
>in whatever order they apply.
In the rpartition case, that would be (rest, sep, upto) which seems a
We need some choice of words that clearly mean:
* the chopped-off snippet (guaranteed to not contain the separator)
* the separator if found
* the unchopped remainer of the string (which may contain a separator).
Of course, if a clear example is added, the choice of words becomes much
More information about the Python-Dev