[issue7775] str.rpartition(sep) -> (tail, sep, head)

kai zhu report at bugs.python.org
Mon Jan 25 09:06:13 CET 2010


kai zhu <kaizhu256 at gmail.com> added the comment:

documentation bug
should be changed to:

"S.rpartition(sep) -> (head, sep, tail)"



>>> help(str.rpartition)
Help on method_descriptor:

rpartition(...)
    S.rpartition(sep) -> (tail, sep, head)

    Search for the separator sep in S, starting at the end of S, and return
    the part before it, the separator itself, and the part after it.  If the
    separator is not found, return two empty strings and S.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7775>
_______________________________________


More information about the Python-bugs-list mailing list