Re: [Python-Dev] Problem withthe API for str.rpartition()

2006-09-01 Thread Guido van Rossum
+1 On 9/1/06, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > Currently, both the partition() and rpartition() methods return a (head, > sep, tail) tuple and the only difference between the two is whether the > partition element search starts from the beginning or end of the > string. When no sepa

[Python-Dev] Problem withthe API for str.rpartition()

2006-09-01 Thread Raymond Hettinger
Currently, both the partition() and rpartition() methods return a (head, sep, tail) tuple and the only difference between the two is whether the partition element search starts from the beginning or end of the string. When no separator is found, both methods return the string S and two empty s