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

2006年9月05日 13:14:25 -0700

Tim Peters wrote:
> upto, sep, rest
>
>in whatever order they apply. 
>
In the rpartition case, that would be (rest, sep, upto) which seems a 
bit cryptic.
We need some choice of words that clearly mean:
 * the chopped-off snippet (guaranteed to not contain the separator)
 * the separator if found
 * the unchopped remainer of the string (which may contain a separator).
Of course, if a clear example is added, the choice of words becomes much 
less important.
Raymond
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to