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/068649.html below:

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

[Python-Dev] Fwd: Problem withthe API for str.rpartition() [Python-Dev] Fwd: Problem withthe API for str.rpartition()Jim Jewett jimjjewett at gmail.com
Tue Sep 5 22:43:20 CEST 2006
I think I finally figured out where Raymond is coming from.

For Raymond, "head" is where he started processing -- for rpartition,
this is the .endswith part.

For me, "head" is the start of the data structure -- always the
.startswith part.

We won't resolve that with anything suggesting a sequential order; we
need something that makes it clear which part is the large leftover.

    S.partition(sep) -> (record, sep, remains)
    S.rpartition(sep) -> (remains, sep, record)

I do like the plural (or collective) sound of "remains".

I have no solid reasoning for "record" vs "rec" vs "onerec".  I would
welcome a word that did not suggest it would have further internal
structure.

-jJ
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