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

Tim Peters tim.peters at gmail.com
Tue Sep 5 21:07:43 CEST 2006


    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 ;-)


More information about the Python-Dev mailing list