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

Jim Jewett jimjjewett at gmail.com
Tue Sep 5 18:47:26 CEST 2006


> Jim Jewett wrote:
> >Why not just change which of the three strings holds the remainder in
> >the not-found case?

On 9/5/06, Raymond Hettinger <rhettinger at ewtllc.com> wrote:
> That was the only change submitted.
> Are you happy with what was checked-in?

This change looks wrong:

 PyDoc_STRVAR(rpartition__doc__,
-"S.rpartition(sep) -> (head, sep, tail)\n\
+"S.rpartition(sep) -> (tail, sep, head)\n\

It looks like the code itself does the right thing, but I wasn't quite
confident of that.

-jJ


More information about the Python-Dev mailing list