[Python-Dev] Fwd: Problem withthe API for str.rpartition() (original) (raw)
Jim Jewett jimjjewett at gmail.com
Tue Sep 5 18:47:26 CEST 2006
- Previous message: [Python-Dev] Fwd: Problem withthe API for str.rpartition()
- Next message: [Python-Dev] Fwd: Problem withthe API for str.rpartition()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Fwd: Problem withthe API for str.rpartition()
- Next message: [Python-Dev] Fwd: Problem withthe API for str.rpartition()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]