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

Paul Moore p.f.moore at gmail.com
Tue Sep 5 21:41:58 CEST 2006


On 9/5/06, Tim Peters <tim.peters at gmail.com> wrote:
>     upto, sep, rest
>
> in whatever order they apply.  I think of a partition-like function as
> starting at some position and matching "up to" the first occurence of
> the separator (be that left or right or diagonally, "up to" is
> relative to the search direction), and leaving "the rest" alone. The
> docs should match that, since my mental model is correct ;-)

+1

Paul


More information about the Python-Dev mailing list