A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-September/068623.html below:

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

[Python-Dev] Fwd: Problem withthe API for str.rpartition()Fred L. Drake, Jr. fdrake at acm.org
Tue Sep 5 19:51:49 CEST 2006
On Tuesday 05 September 2006 13:24, Michael Chermside wrote:
 > How about something like this:
 >
 >     S.partition(sep) -> (head, sep, tail)
 >     S.rpartition(sep) -> (tail, sep, rest)

I think I prefer:

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

Here, "rest" is always used for "what remains"; head/tail are somewhat more 
clear here I think.


  -Fred

-- 
Fred L. Drake, Jr.   <fdrake at acm.org>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4